Skip to content

Commit ba28c88

Browse files
Add GPG passphrase server configuration and enhance GPG arguments for signing process
1 parent a01c8c9 commit ba28c88

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,17 @@ jobs:
4646
<username>${CENTRAL_USERNAME}</username>
4747
<password>${CENTRAL_TOKEN}</password>
4848
</server>
49+
<server>
50+
<id>gpg.passphrase</id>
51+
<passphrase>${GPG_PASSPHRASE}</passphrase>
52+
</server>
4953
</servers>
5054
</settings>
5155
EOF
5256
env:
5357
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
5458
CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}
59+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5560

5661
- name: Verify Maven settings and credentials
5762
run: |

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,10 @@
290290
<gpgArguments>
291291
<arg>--pinentry-mode</arg>
292292
<arg>loopback</arg>
293+
<arg>--batch</arg>
294+
<arg>--yes</arg>
293295
</gpgArguments>
296+
<passphraseServerId>gpg.passphrase</passphraseServerId>
294297
</configuration>
295298
</execution>
296299
</executions>

0 commit comments

Comments
 (0)