Skip to content

Commit

Permalink
fix: switch to using a new method for keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymeh committed Sep 2, 2022
1 parent 00ef8e5 commit c95c1c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ jobs:

- name: Create GPG signature of PHAR
run: |
echo $DECRYPT_KEY | gpg --passphrase-fd 0 keys.asc.gpg
gpg --batch --yes --import keys.asc
echo $SIGN_KEY | gpg --passphrase-fd 0 -u 00D81146 --armor --detach-sig builds/changelog-checker.phar
mkdir -p ~/.gnupg/
chmod 0700 ~/.gnupg/
echo "$GPG_SIGNING_KEY" > ~/.gnupg/private.key
gpg --import ~/.gnupg/private.key
gpg -u jaymeh@users.noreply.github.com --detach-sign --output builds/changelog-checker.phar.asc builds/changelog-checker.phar
env:
SIGN_KEY: ${{ secrets.SIGN_KEY }}
DECRYPT_KEY: ${{ secrets.DECRYPT_KEY }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit c95c1c0

Please sign in to comment.