Skip to content

Commit

Permalink
Changed the extension of the gpg key
Browse files Browse the repository at this point in the history
  • Loading branch information
catacraciun committed Oct 4, 2021
1 parent 1d10873 commit ae99d7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- name: Configure GPG Key
run: |
mkdir -p .gnupg/
printf "$GPG_SECRET_KEY" | base64 --decode > .gnupg/private.key
echo $SIGNING_PASSWORD | gpg --batch --yes --passphrase-fd 0 .gnupg/private.key
printf "$GPG_SECRET_KEY" | base64 --decode > .gnupg/private.gpg
echo $SIGNING_PASSWORD | gpg --batch --yes --passphrase-fd 0 .gnupg/private.gpg
echo $SIGNING_PASSWORD | gpg --export-secret-keys -o ~/secring.kbx
env:
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
Expand Down
4 changes: 1 addition & 3 deletions .utility/initiate-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

echo -e "Starting publish to Sonatype...\n"

ls -l /home/runner/work/mangopay2-java-sdk/mangopay2-java-sdk/.gnupg

./gradlew publish -PnexusUsername="${MAVEN_USERNAME}" -PnexusPassword="${SONATYPE_PASSWORD}" -Psigning.keyId=AF02E028 -Psigning.password="${SIGNING_PASSWORD}" -Psigning.secretKeyRingFile=.gnupg/private.key
./gradlew publish -PnexusUsername="${MAVEN_USERNAME}" -PnexusPassword="${SONATYPE_PASSWORD}" -Psigning.keyId=AF02E028 -Psigning.password="${SIGNING_PASSWORD}" -Psigning.secretKeyRingFile=.gnupg/private.gpg
RETVAL=$?

if [ $RETVAL -eq 0 ]; then
Expand Down

0 comments on commit ae99d7c

Please sign in to comment.