Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup the signing of the phar file. Needed for Phive #397 #663

Merged
merged 2 commits into from
Apr 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 phar
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