Skip to content

Commit c0e453a

Browse files
committed
Move version set step to release Github Action
1 parent 70971dd commit c0e453a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ jobs:
2222
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2323
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2424

25-
# - name: Update version
26-
# run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.release.tag_name }}
25+
- name: Update version
26+
run: |
27+
./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.release.tag_name }} versions:commit
28+
git config user.name "GitHub Action"
29+
git config user.email "[email protected]"
30+
git commit -m "Release ${{ github.event.release.tag_name }}"
31+
git push
2732
2833
- name: Publish to the Maven Central Repository
2934
run: ./mvnw --batch-mode --no-transfer-progress -Dgib.disable=true -Ddocker.cleanup.skip=true -P ossrh -DskipTests deploy

0 commit comments

Comments
 (0)