Skip to content

Commit 1ee6693

Browse files
author
Marvin Zhang
committed
chore: Add version setting step in GitHub Actions workflow for release tagging
- Introduced a new step in the GitHub Actions workflow to set the Maven project version based on the GitHub release tag. - This enhancement ensures that the versioning aligns with the release process, improving deployment accuracy.
1 parent 4c4b8da commit 1ee6693

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
server-password: MAVEN_PASSWORD
4545
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
4646
gpg-passphrase: MAVEN_GPG_PASSPHRASE
47+
- name: Set version
48+
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
4749
- name: Publish package
4850
run: |
4951
mvn -P release --batch-mode deploy

0 commit comments

Comments
 (0)