3131 uses : arduino/setup-task@v2
3232 with :
3333 version : 3.x
34+ repo-token : ${{ secrets.GITHUB_TOKEN }}
3435
3536 - name : Login to ghcr.io
3637 uses : docker/login-action@v3
8182 uses : arduino/setup-task@v2
8283 with :
8384 version : 3.x
85+ repo-token : ${{ secrets.GITHUB_TOKEN }}
8486
8587 - name : Install libkrun via Homebrew
8688 run : |
@@ -112,6 +114,7 @@ jobs:
112114 name : Create Release
113115 runs-on : ubuntu-latest
114116 needs : [build-artifacts, build-artifacts-darwin]
117+ if : ${{ always() && needs.build-artifacts.result == 'success' }}
115118 steps :
116119 - name : Checkout repository
117120 uses : actions/checkout@v6
@@ -125,18 +128,17 @@ jobs:
125128 run : |
126129 sha256sum propolis-*.tar.gz > sha256sums.txt
127130
128- - name : Create GitHub Release
131+ - name : Create or update GitHub Release
129132 env :
130133 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131134 run : |
132- gh release create ${{ github.ref_name }} --generate-notes \
133- propolis-runtime-linux-amd64.tar.gz \
134- propolis-runtime-linux-arm64.tar.gz \
135- propolis-firmware-linux-amd64.tar.gz \
136- propolis-firmware-linux-arm64.tar.gz \
137- propolis-runtime-darwin-arm64.tar.gz \
138- propolis-firmware-darwin-arm64.tar.gz \
139- sha256sums.txt
135+ if gh release view "${{ github.ref_name }}" >/dev/null 2>&1; then
136+ gh release upload "${{ github.ref_name }}" --clobber \
137+ propolis-*.tar.gz sha256sums.txt
138+ else
139+ gh release create "${{ github.ref_name }}" --generate-notes \
140+ propolis-*.tar.gz sha256sums.txt
141+ fi
140142
141143 push-oci :
142144 name : Push OCI (${{ matrix.arch }})
0 commit comments