feat: update workflow

This commit is contained in:
vran 2022-03-04 22:49:14 +08:00
parent 56cd7a784d
commit 356905c079
1 changed files with 8 additions and 6 deletions

View File

@ -9,7 +9,7 @@ on:
- 'v*' - 'v*'
jobs: jobs:
jpackage: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -21,12 +21,14 @@ jobs:
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Gradle - name: add permission to gradle;
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 run: chmod +x ./gradlew
with:
arguments: api:build -x checkstyleMain -x checkstyleTest
- name: Release-mac - name: build with gradle
with:
arguments: ./gradlew api:build
- name: release jar
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with: