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 20
20
server-id : ossrh
21
21
server-username : MAVEN_USERNAME
22
22
server-password : MAVEN_PASSWORD
23
+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
23
24
gpg-passphrase : GPG_PASSPHRASE
24
25
- name : Publish to the Maven Central Repository
25
- run : mvn --batch-mode deploy
26
+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
26
27
env :
27
28
MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
28
29
MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
37
38
java-version : " 8"
38
39
distribution : " adopt"
39
40
server-id : github
41
+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
42
+ gpg-passphrase : GPG_PASSPHRASE
40
43
- name : Publish to GitHub Packages
41
- run : mvn --batch-mode deploy
44
+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
42
45
env :
43
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 268
268
<goals >
269
269
<goal >sign</goal >
270
270
</goals >
271
+ <configuration >
272
+ <gpgArguments >
273
+ <arg >--pinentry-mode</arg >
274
+ <arg >loopback</arg >
275
+ </gpgArguments >
276
+ </configuration >
271
277
</execution >
272
278
</executions >
273
279
</plugin >
You can’t perform that action at this time.
0 commit comments