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.
1 parent 121fd7f commit a0385d6Copy full SHA for a0385d6
.github/workflows/maven-publish.yml
@@ -27,6 +27,10 @@ jobs:
27
server-id: ossrh
28
server-username: MAVEN_USERNAME
29
server-password: MAVEN_PASSWORD
30
+
31
+ - name: Get the version
32
+ id: get_version
33
+ run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
34
35
- name: Import GPG Key
36
uses: crazy-max/ghaction-import-gpg@v1
@@ -35,7 +39,7 @@ jobs:
39
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
40
37
41
- name: Publish to the Maven Central Repository
38
- run: mvn --batch-mode deploy
42
+ run: mvn -Dproject.version=${VERSION} --batch-mode deploy
43
env:
44
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
45
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
0 commit comments