Skip to content

Commit 8671ad9

Browse files
committed
fix: configure gpg passphrase
1 parent 073d44d commit 8671ad9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,18 @@ jobs:
3232
gpg-private-key: ${{ secrets.GPG_KEY }}
3333
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3434

35+
- name: Configure GPG
36+
run: |
37+
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
38+
gpgconf --reload gpg-agent
39+
3540
- name: Publish to Maven Central
3641
run: |
3742
./mvnw clean deploy \
3843
-P production-releases \
3944
-D maven.test.skip=true \
45+
-D gpg.passphrase="${MAVEN_GPG_PASSPHRASE}" \
46+
-D gpg.args="--pinentry-mode=loopback" \
4047
-pl !bolt-kotlin-examples \
4148
-pl !bolt-quarkus-examples \
4249
--batch-mode \

0 commit comments

Comments
 (0)