|
72 | 72 | echo "release_deb=$release_deb" >> "$GITHUB_OUTPUT" |
73 | 73 |
|
74 | 74 | - name: Upload Linux artifact |
75 | | - uses: actions/upload-artifact@v4 |
| 75 | + uses: actions/upload-artifact@v7 |
76 | 76 | with: |
77 | 77 | name: linux-deb |
78 | 78 | path: ${{ steps.prep.outputs.release_deb }} |
@@ -171,7 +171,7 @@ jobs: |
171 | 171 | "release_zip=$releaseZip" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append |
172 | 172 |
|
173 | 173 | - name: Upload Windows artifact |
174 | | - uses: actions/upload-artifact@v4 |
| 174 | + uses: actions/upload-artifact@v7 |
175 | 175 | with: |
176 | 176 | name: windows-zip |
177 | 177 | path: ${{ steps.prep.outputs.release_zip }} |
@@ -207,14 +207,26 @@ jobs: |
207 | 207 | git tag -f release "${GITHUB_SHA}" |
208 | 208 | git push --force origin release |
209 | 209 |
|
| 210 | + - name: Delete existing release object (if any) |
| 211 | + env: |
| 212 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 213 | + run: | |
| 214 | + set -euo pipefail |
| 215 | + if gh release view release >/dev/null 2>&1; then |
| 216 | + gh release delete release --yes |
| 217 | + echo "Deleted previous release object for tag 'release'." |
| 218 | + else |
| 219 | + echo "No previous release object found for tag 'release'." |
| 220 | + fi |
| 221 | +
|
210 | 222 | - name: Download Linux artifact |
211 | | - uses: actions/download-artifact@v4 |
| 223 | + uses: actions/download-artifact@v8 |
212 | 224 | with: |
213 | 225 | name: linux-deb |
214 | 226 | path: artifacts/ |
215 | 227 |
|
216 | 228 | - name: Download Windows artifact |
217 | | - uses: actions/download-artifact@v4 |
| 229 | + uses: actions/download-artifact@v8 |
218 | 230 | with: |
219 | 231 | name: windows-zip |
220 | 232 | path: artifacts/ |
@@ -247,9 +259,7 @@ jobs: |
247 | 259 | tag: release |
248 | 260 | name: Release (Beta) |
249 | 261 | prerelease: false |
250 | | - allowUpdates: true |
251 | | - removeArtifacts: true |
252 | | - replacesArtifacts: true |
| 262 | + allowUpdates: false |
253 | 263 | artifactErrorsFailBuild: true |
254 | 264 | commit: ${{ github.sha }} |
255 | 265 | artifacts: "artifacts/*.deb,artifacts/*.zip" |
|
0 commit comments