Skip to content

Commit

Permalink
Manually setup/import gpg key
Browse files Browse the repository at this point in the history
GH action doesn't support sign-only keys.

[1]: crazy-max/ghaction-import-gpg#58
  • Loading branch information
adborden committed May 2, 2021
1 parent 21ac33d commit 6e85497
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Expand Up @@ -11,11 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: import GPG signing key
run: |
gpg-agent --daemon
private_key=$(mktemp)
echo '${{ secrets.GPG_PRIVATE_KEY }}' > $private_key
gpg --import $private_key
rm $private_key
- run: make build sign
- name: release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 6e85497

Please sign in to comment.