Skip to content

Commit

Permalink
Add GPG2 setup steps thanks to @mwz
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGregory084 authored Nov 10, 2020
1 parent f7ce668 commit 4614b43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8

- name: Set up GPG
run: |
mkdir ~/.gnupg && chmod 700 ~/.gnupg
echo use-agent >> ~/.gnupg/gpg.conf
echo pinentry-mode loopback >> ~/.gnupg/gpg.conf
echo allow-loopback-pinentry >> ~/.gnupg/gpg-agent.conf
chmod 600 ~/.gnupg/*
echo RELOADAGENT | gpg-connect-agent
echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes
env:
PGP_SECRET: ${{secrets.PGP_SECRET}}

- name: Run tests
run: |
Expand Down

0 comments on commit 4614b43

Please sign in to comment.