File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2020 server-id : ossrh
2121 server-username : MAVEN_USERNAME
2222 server-password : MAVEN_PASSWORD
23+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
2324 gpg-passphrase : GPG_PASSPHRASE
2425 - name : Publish to the Maven Central Repository
25- run : mvn --batch-mode deploy
26+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
2627 env :
2728 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
2829 MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
3738 java-version : " 8"
3839 distribution : " adopt"
3940 server-id : github
41+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
42+ gpg-passphrase : GPG_PASSPHRASE
4043 - name : Publish to GitHub Packages
41- run : mvn --batch-mode deploy
44+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
4245 env :
4346 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 268268 <goals >
269269 <goal >sign</goal >
270270 </goals >
271+ <configuration >
272+ <gpgArguments >
273+ <arg >--pinentry-mode</arg >
274+ <arg >loopback</arg >
275+ </gpgArguments >
276+ </configuration >
271277 </execution >
272278 </executions >
273279 </plugin >
You can’t perform that action at this time.
0 commit comments