From 2a62188bc87066890ffe564d5b0c7f936ad014d3 Mon Sep 17 00:00:00 2001 From: johnnyaug Date: Tue, 11 Jul 2023 19:25:10 +0300 Subject: [PATCH] Remove "v" from release tag --- .github/workflows/publish-artifact.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-artifact.yml b/.github/workflows/publish-artifact.yml index fd8d946..1e94093 100644 --- a/.github/workflows/publish-artifact.yml +++ b/.github/workflows/publish-artifact.yml @@ -11,10 +11,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + - if: github.event.release + name: Create release tag + run: | + TAG=${{ github.event.release.tag_name }} + echo "TAG=${TAG#v}" >> $GITHUB_ENV - if: github.event.release name: Update version in pom.xml - run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false + run: mvn -B versions:set -DnewVersion=$TAG -DgenerateBackupPoms=false - name: Set up Java and Maven Central Repository uses: actions/setup-java@v2