Skip to content

Commit

Permalink
Set project version from release version
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbenckhuijsen committed Apr 8, 2024
1 parent c59300c commit 94fb7f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
- 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 to the Maven Central Repository
run: |
echo ${MAVEN_GPG_KEY} > private_key.txt
Expand Down

0 comments on commit 94fb7f8

Please sign in to comment.