Skip to content

Commit f5d0a5a

Browse files
committed
Add release artifact upload using gh cli
Signed-off-by: Gary Oberbrunner <[email protected]>
1 parent a2cae20 commit f5d0a5a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build OpenFX libs and examples
22

33
permissions:
44
id-token: write
5-
contents: read
5+
contents: write
66
actions: write
77

88
on:
@@ -411,7 +411,6 @@ jobs:
411411
412412
- name: Sign plugins tarball with Sigstore
413413
uses: sigstore/gh-action-sigstore-python@f514d46b907ebcd5bedc05145c03b69c1edd8b46 # v3.0.0
414-
# if: github.event_name == 'release'
415414
with:
416415
inputs: openfx-plugins-${{ env.RELEASE_NAME }}.tar.gz
417416
upload-signing-artifacts: false
@@ -424,3 +423,15 @@ jobs:
424423
path: |
425424
openfx-plugins-${{ env.RELEASE_NAME }}.tar.gz
426425
openfx-plugins-${{ env.RELEASE_NAME }}.tar.gz.sigstore.json
426+
427+
- name: Upload artifacts to release
428+
if: github.event_name == 'release'
429+
env:
430+
GH_TOKEN: ${{ github.token }}
431+
TAG: ${{ github.ref_name }}
432+
run: |
433+
gh release upload ${TAG} \
434+
openfx-${{ env.RELEASE_NAME }}.tar.gz \
435+
openfx-${{ env.RELEASE_NAME }}.tar.gz.sigstore.json \
436+
openfx-plugins-${{ env.RELEASE_NAME }}.tar.gz \
437+
openfx-plugins-${{ env.RELEASE_NAME }}.tar.gz.sigstore.json

0 commit comments

Comments
 (0)