Skip to content

Commit

Permalink
Setup the signing of the phar file. Needed for Phive pdepend#397
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek committed Apr 13, 2023
1 parent 497acf6 commit 137c1fa
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,25 @@ jobs:
ant package -D-phar:filename=./pdepend.phar;
./pdepend.phar --version;
- name: Upload pdepend.phar
uses: actions/upload-artifact@v2
- name: Sign phat
env:
PASSPHRASE: ${{ secrets.PASSPHRASE }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: gpg --command-fd 0 --pinentry-mode loopback -u pgp@pdepend.org --batch --detach-sign --output pdepend.phar.asc pdepend.phar

- name: Upload pdepend.phar and pdepend.phar.asc
uses: actions/upload-artifact@v3
with:
name: pdepend.phar
path: pdepend.phar
path: |
pdepend.phar
pdepend.phar.asc
- name: Release pdepend.phar
if: github.event_name == 'release'
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'pdepend.phar'
args: |
pdepend.phar
pdepend.phar.asc

0 comments on commit 137c1fa

Please sign in to comment.