Skip to content

Commit

Permalink
Sign the PHAR release
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Jul 24, 2024
1 parent e381f41 commit 804be0e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@ jobs:
run: box compile
- name: Check the PHAR executes
run: php pie.phar --version
# @todo sign the phar
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}
passphrase: ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}
- name: Sign the PHAR
run: |
gpg --local-user [email protected] \
--batch \
--yes \
--passphrase="${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}" \
--detach-sign \
--output pie.phar.asc \
pie.phar
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
if: ${{startsWith(github.ref, 'refs/tags/') }}
with:
files: |
pie.phar
# pie.phar.asc
pie.phar.asc

0 comments on commit 804be0e

Please sign in to comment.