From 356905c0794bee95ea65ea52408f42bb5d5f7142 Mon Sep 17 00:00:00 2001 From: vran Date: Fri, 4 Mar 2022 22:49:14 +0800 Subject: [PATCH] feat: update workflow --- .github/workflows/release.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c421a9a..74f5bb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: - 'v*' jobs: - jpackage: + release: runs-on: ubuntu-latest steps: @@ -21,12 +21,14 @@ jobs: server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file - - name: Build with Gradle - uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 - with: - arguments: api:build -x checkstyleMain -x checkstyleTest + - name: add permission to gradle; + run: chmod +x ./gradlew - - name: Release-mac + - name: build with gradle + with: + arguments: ./gradlew api:build + + - name: release jar uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: