Skip to content

Commit

Permalink
Get the version of the tag in a more stable way
Browse files Browse the repository at this point in the history
  • Loading branch information
tishun committed Jun 11, 2024
1 parent 1318fa9 commit 69be47d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/version-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
server-password: MAVEN_PASSWORD

- name: 4. Update version in Maven configuration
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}

- name: 5. Install GPG key
run: |
Expand All @@ -43,7 +43,7 @@ jobs:
mvn --no-transfer-progress \
--batch-mode \
-Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
release:perform
deploy -P sonatype-oss-release
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}

0 comments on commit 69be47d

Please sign in to comment.