Skip to content

Commit

Permalink
Run GPG before committing any code in case it fails, update the phpcs…
Browse files Browse the repository at this point in the history
… release key

Key updated in upstream in PHPCSStandards/PHP_CodeSniffer@39b9cf1

Squashed PR #2
Closes #1
  • Loading branch information
spaze committed May 21, 2024
1 parent fa556b3 commit 51f98e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
file: "phpcs\\.phar(\\.asc)?"
target: "./"
token: ${{ secrets.GITHUB_TOKEN }}
- name: "Verify GPG signature"
run: |-
gpg --no-default-keyring --keyring trustedkeys.kbx --receive-keys 689DAD778FF08760E046228BA978220305CD5C32
gpgv phpcs.phar.asc phpcs.phar
- name: "Fetch phpcs.xsd"
run: wget --timestamping https://github.com/PHPCSStandards/PHP_CodeSniffer/raw/${{ steps.fetch_phar.outputs.version }}/phpcs.xsd
- name: "Update replaced versions in composer.json"
Expand All @@ -41,11 +45,6 @@ jobs:
run: |-
./phpcs --version
./phpcbf --version
- name: "Verify GPG signature"
if: success() && steps.commit_push.outputs.release
run: |-
gpg --no-default-keyring --keyring trustedkeys.kbx --receive-keys 95DE904AB800754A11D80B605E6DDE998AB73B8E
gpgv phpcs.phar.asc phpcs.phar
- name: "Create release ${{ steps.fetch_phar.outputs.version }}"
if: success() && steps.commit_push.outputs.release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 51f98e3

Please sign in to comment.