We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7eac705 + 9b14d46 commit bed8180Copy full SHA for bed8180
.github/workflows/publish.yml
@@ -33,10 +33,11 @@ jobs:
33
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
34
gpg-passphrase: MAVEN_GPG_PASSPHRASE
35
36
+ - name: Get Maven project version
37
+ run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
38
+
39
- name: Set Maven project version
- run: |
- echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- mvn versions:set -DnewVersion=$RELEASE_VERSION
40
+ run: mvn versions:set -DnewVersion=$RELEASE_VERSION
41
42
- name: Publish to Apache Maven Central
43
run: mvn deploy
0 commit comments