From 01410e7a3c075c1713213174f03c360579404c68 Mon Sep 17 00:00:00 2001 From: Janmm14 Date: Sun, 30 Oct 2022 05:17:13 +0100 Subject: [PATCH] Use versioned releases --- .github/workflows/automatic_release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automatic_release.yml b/.github/workflows/automatic_release.yml index aa57537..5af89ab 100644 --- a/.github/workflows/automatic_release.yml +++ b/.github/workflows/automatic_release.yml @@ -19,6 +19,8 @@ jobs: java-version: '8' distribution: 'zulu' java-package: jdk+fx + - name: Set Release version env variable + run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV - name: Cache local Maven repository uses: actions/cache@v2 with: @@ -34,9 +36,9 @@ jobs: uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" + automatic_release_tag: "${{ env.RELEASE_VERSION }}" prerelease: false - title: "Latest Build" + title: "v${{ env.RELEASE_VERSION }}" files: | LICENSE target/deobfuscator-gui.jar