From 4fc315a6c1a5a0e5570778af48308fbe864733ef Mon Sep 17 00:00:00 2001 From: Adrien Nguyen Date: Wed, 28 Apr 2021 19:38:47 +0200 Subject: [PATCH] update build process --- .github/workflows/maven-publish-release.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven-publish-release.yml b/.github/workflows/maven-publish-release.yml index ccbb37b..c4cf4c8 100644 --- a/.github/workflows/maven-publish-release.yml +++ b/.github/workflows/maven-publish-release.yml @@ -5,7 +5,8 @@ name: Maven Package Release on: push: - branches: [ release ] + tags: + - 'v*' jobs: build: @@ -21,13 +22,15 @@ 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 Maven + run: mvn -B package --file pom.xml -DskipTests + - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false \ No newline at end of file + files: | + KinanCity-core/target/kinancity-core-*.jar + KinanCity-mail/target/kinancity-mail-*.jar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file