From 2580ade67cdba3e6d6f2d95ebeea3e9e5c3b17f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Guimar=C3=A3es?= Date: Mon, 7 Aug 2023 12:03:01 +0100 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af6fecc7..ce754daf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: - "**" jobs: - deploy: + release: runs-on: ubuntu-latest steps: @@ -24,7 +24,7 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven- - name: Set POM Version - run: mvn versions:set versions:commit -DnewVersion=${{ github.ref }} + run: mvn versions:set versions:commit -DnewVersion=${{ github.ref_name }} - name: Build Jar run: mvn --batch-mode clean package -P cli env: @@ -36,9 +36,9 @@ jobs: - name: Release to GitHub uses: softprops/action-gh-release@v1 with: - name: Version ${{ github.ref }} - tag_name: ${{ github.ref }} + name: Version ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} draft: true - files: target/commons-ip2-cli-${{ github.ref }}.jar + files: target/commons-ip2-cli-${{ github.ref_name }}.jar env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}