File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 283283 <goals >
284284 <goal >sign</goal >
285285 </goals >
286+ <configuration >
287+ <gpgArguments >
288+ <arg >--pinentry-mode</arg >
289+ <arg >loopback</arg >
290+ </gpgArguments >
291+ </configuration >
286292 </execution >
287293 </executions >
288294 </plugin >
You can’t perform that action at this time.
0 commit comments