Skip to content

Commit

Permalink
add configure step
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 9, 2024
1 parent 8f7fd88 commit 422b146
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,23 @@ jobs:
java-version: '11'
cache: maven

- name: Configure GPG
run: |
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
echo "default-cache-ttl 600" >> ~/.gnupg/gpg-agent.conf
echo "max-cache-ttl 7200" >> ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE_TEST }}

- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY_TEST }}" | gpg --import
echo "${{ secrets.GPG_PASSPHRASE_TEST }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import
gpg --list-secret-keys --keyid-format LONG
echo "${{ secrets.GPG_PASSPHRASE_TEST }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE_TEST }}

Expand Down

0 comments on commit 422b146

Please sign in to comment.