Skip to content

Commit

Permalink
Allow a Passphrase on the Key
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhandte committed Mar 15, 2021
1 parent eed64d7 commit 2303306
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Archive
env:
RELEASE_SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
RELEASE_SIGNING_KEY_PASSPHRASE: ${{ secrets.RELEASE_SIGNING_KEY_PASSPHRASE }}
run: |
# compute file name
export TAG="$(echo "$GITHUB_REF" | sed -n 's_^refs/tags/__p')"
Expand Down Expand Up @@ -54,8 +55,8 @@ jobs:
# sign
if [ -n "$RELEASE_SIGNING_KEY" ]; then
echo "$RELEASE_SIGNING_KEY" | gpg --import
gpg --armor --sign --sign-with signing@zstd.net --detach-sig --output $ZSTD_VERSION.tar.zst.sig $ZSTD_VERSION.tar.zst
gpg --armor --sign --sign-with signing@zstd.net --detach-sig --output $ZSTD_VERSION.tar.gz.sig $ZSTD_VERSION.tar.gz
gpg --batch --no-use-agent --pinentry-mode loopback --no-tty --yes --armor --sign --sign-with signing@zstd.net --detach-sig --passphrase "$RELEASE_SIGNING_KEY_PASSPHRASE" --output $ZSTD_VERSION.tar.zst.sig $ZSTD_VERSION.tar.zst
gpg --batch --no-use-agent --pinentry-mode loopback --no-tty --yes --armor --sign --sign-with signing@zstd.net --detach-sig --passphrase "$RELEASE_SIGNING_KEY_PASSPHRASE" --output $ZSTD_VERSION.tar.gz.sig $ZSTD_VERSION.tar.gz
fi
- name: Publish
Expand Down

0 comments on commit 2303306

Please sign in to comment.