We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f0840 commit aeeba52Copy full SHA for aeeba52
1 file changed
.github/workflows/maven-release.yaml
@@ -43,16 +43,19 @@ jobs:
43
- name: Verify GPG Key & Passphrase (Explicit Shell Import)
44
run: |
45
echo "$RAW_GPG_KEY" > private.key
46
-
47
gpg --batch --import private.key
48
rm private.key
49
50
- gpg --list-secret-keys --keyid-format LONG
+ mkdir -p ~/.gnupg
+ echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
51
+ echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
52
+ gpgconf --kill gpg-agent
53
54
mvn clean verify -B -ntp \
55
-DskipTests=true \
56
-Dmaven.javadoc.skip=true \
- -Dgpg.passphrase="$GPG_PASSPHRASE"
57
+ -Dgpg.passphrase="$GPG_PASSPHRASE" \
58
+ -Dgpg.keyname="95BCB1665C76C3A6"
59
env:
60
RAW_GPG_KEY: ${{ secrets.SONATYPE_GPG_PRIVATE_KEY }}
61
GPG_PASSPHRASE: ${{ secrets.SONATYPE_GPG_PASSPHRASE }}
0 commit comments