Skip to content

Commit

Permalink
update: maven-publish
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Lenke <[email protected]>
  • Loading branch information
matheuslenke committed Dec 20, 2024
1 parent 81b20d5 commit a7d612a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Import GPG Key and Set Passphrase for Agent
- name: Import GPG Key
run: |
export GPG_TTY=$(tty)
echo "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --batch --import
echo "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --batch --passphrase "${{ secrets.GPG_PASSWORD }}" --import
gpg --list-secret-keys --keyid-format LONG
echo RELOADAGENT | gpg-connect-agent
echo "${{ secrets.GPG_PASSWORD }}" | gpg-connect-agent "SETKEY ${{ secrets.GPG_KEY_ID }}" /bye
env:
GPG_TTY: $(tty)
- name: Verify Secret Key Import
run: gpg --list-secret-keys --keyid-format LONG
Expand Down

0 comments on commit a7d612a

Please sign in to comment.