Skip to content

Commit 83a9097

Browse files
committed
secure workflow
1 parent 42625ff commit 83a9097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish-central.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ jobs:
2424
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
2525
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
2626
- name: Enforce project version ${{ github.event.inputs.tag }}
27-
run: mvn versions:set -B -DnewVersion=${{ github.event.inputs.tag }}
27+
run: mvn versions:set -B -DnewVersion=$GIT_TAG
2828
- name: Deploy
2929
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
3030
env:
31+
GIT_TAG: ${{ github.event.inputs.tag }}
3132
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3233
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3334
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)