Skip to content

Commit

Permalink
Trigger preparing of release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Oct 26, 2024
1 parent 5b7f7df commit fe44803
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Release

on:
release:
types: [ created ]
push:
# release:
# types: [ created ]

# See https://stackoverflow.com/a/72408109
concurrency:
Expand Down Expand Up @@ -75,14 +76,14 @@ jobs:

# The following section is done only for releases
- name: Import GPG key
if: github.event_name == 'release'
# if: github.event_name == 'release'
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_KEY_9D0DD6FCB92C84688B777DF59204DEE8CAE9C22C }}
passphrase: "${{ secrets.GPG_KEY_9D0DD6FCB92C84688B777DF59204DEE8CAE9C22C_PASSPHRASE }}"

- name: Sign the PHAR
if: github.event_name == 'release'
# if: github.event_name == 'release'
run: |
gpg --local-user 9D0DD6FCB92C84688B777DF59204DEE8CAE9C22C \
--batch \
Expand All @@ -95,10 +96,10 @@ jobs:
- name: Verify signature
run: gpg --verify ${{ env.TODO_REGISTRAR_SIGN }} ${{ env.TODO_REGISTRAR_PHAR }}

- name: Upload PHAR to the release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GH_RELEASE_TOKEN }}
files: |
${{ env.TODO_REGISTRAR_PHAR }}
${{ env.TODO_REGISTRAR_SIGN }}
# - name: Upload PHAR to the release
# uses: softprops/action-gh-release@v2
# with:
# token: ${{ secrets.GH_RELEASE_TOKEN }}
# files: |
# ${{ env.TODO_REGISTRAR_PHAR }}
# ${{ env.TODO_REGISTRAR_SIGN }}

0 comments on commit fe44803

Please sign in to comment.