Skip to content

Commit

Permalink
Remove "v" from release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyaug committed Jul 11, 2023
1 parent 8ddae37 commit 2a62188
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a62188

Please sign in to comment.