Skip to content

Commit

Permalink
add password for gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
sboeckelmann committed Aug 29, 2024
1 parent e382000 commit dc1655f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
env:
OPENEPCIS_OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OPENEPCIS_OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
run: |
mvn \
-s .mvn/settings.xml \
--no-transfer-progress \
--batch-mode \
-Popenepcis-ossrh \
-Dgpg.passphrase="${{ secrets.OSSRH_GPG_SECRET_KEY }}" clean deploy
-Dgpg.passphrase="${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" clean deploy
3 changes: 0 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -840,11 +840,8 @@ including the right to sell licenses for using this work.
<goal>sign</goal>
</goals>
<configuration>
<useAgent>true</useAgent>
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
<keyname>${gpg.keyname}</keyname>
<gpgArguments>
<arg>--batch</arg>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
Expand Down

0 comments on commit dc1655f

Please sign in to comment.