Skip to content

Commit

Permalink
Update github workflow to better set version
Browse files Browse the repository at this point in the history
  • Loading branch information
Duckelekuuk committed Sep 2, 2023
1 parent 886ea43 commit 95bccc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Increment versions in pom
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
- name: Publish package
run: mvn -Drevision=${{ github.event.release.tag_name }} --batch-mode deploy -P release
run: mvn --batch-mode deploy -P release
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down

0 comments on commit 95bccc5

Please sign in to comment.