Browse Source

Add release github action (#31)

* feat: update workflow

* fix: workflow error
master
vran 3 years ago
committed by GitHub
parent
commit
a9d48f25f7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      .github/workflows/release.yml

15
.github/workflows/release.yml

@ -9,7 +9,7 @@ on:
- 'v*' - 'v*'
jobs: jobs:
jpackage: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -21,16 +21,17 @@ 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: build with gradle
run: ./gradlew api:build -x checkstyleMain -x checkstyleTest
- name: Release-mac - 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:
files: app/build/libs/databasir.jar files: api/build/libs/databasir.jar
draft: true draft: true
fail_on_unmatched_files: true fail_on_unmatched_files: true
env: env:

Loading…
Cancel
Save