Skip to content

Commit

Permalink
Add step to set version in pom based on release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed May 14, 2024
1 parent f9bdc8d commit f2b6061
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
server-password: OSSRH_TOKEN
gpg-private-key: ${{secrets.GPG_PRIVATE_KEY}}
gpg-passphrase: GPG_PASSPHRASE
- if: github.event.release
name: Update version in pom.xml (Release only)
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
- name: Publish package
run: mvn --batch-mode -Prelease deploy
env:
Expand Down

0 comments on commit f2b6061

Please sign in to comment.