Skip to content

Commit c25a2a4

Browse files
committed
Add GPG private key to Maven deployment secrets
1 parent 309f4c3 commit c25a2a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish-maven.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ jobs:
6969
run: mvn verify -DskipTests
7070

7171
- name: Deploy to Maven Central
72-
run: mvn deploy -DskipTests -Prelease
72+
run: mvn -X deploy -DskipTests -Prelease
7373
env:
7474
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
7575
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
7676
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
77+
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
7778

7879
github-release:
7980
name: Create GitHub Release

0 commit comments

Comments
 (0)