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 a84cef4 commit 6925400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
distribution: 'temurin'
cache: 'maven'

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

Expand Down

0 comments on commit 6925400

Please sign in to comment.