Skip to content

Commit

Permalink
Add gpg key test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdre committed May 16, 2023
1 parent 04b8c91 commit 7227db6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test-gpg-keys.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test GPG

on: [workflow_dispatch]

jobs:
test:
name: Test GPG Keys
runs-on: ubuntu-latest
steps:
- name: Test GPG Keys
env:
GPG_EXECUTABLE: gpg
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
run: |
gpg --version
export GPG_TTY="$( tty )" #need to run to sign artifacts with maven
echo "$GPG_SECRET_KEY" | base64 --decode | $GPG_EXECUTABLE --import --no-tty --batch --yes || true
echo "$GPG_OWNERTRUST" | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --no-tty --batch --yes || true
gpg --list-keys
gpg --list-secrets

0 comments on commit 7227db6

Please sign in to comment.