Skip to content

Commit

Permalink
Try pom.xml gpgArgument --pinentry-mode loopback
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbye committed Mar 8, 2024
1 parent 97b4588 commit a4ce298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Prepare GPG
# Stop gpg from asking for the passphrase in a non-interactive environment
run: |
mkdir -p ~/.gnupg
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
- name: Publish package
run: mvn --batch-mode deploy
env:
Expand Down
4 changes: 4 additions & 0 deletions testjar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
<homedir>${basedir}</homedir>
<passphrase>secret</passphrase>
<defaultKeyring>false</defaultKeyring>
<gpgArguments>
<gpgArgument>--pinentry-mode</gpgArgument>
<gpgArgument>loopback</gpgArgument>
</gpgArguments>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit a4ce298

Please sign in to comment.