ci: publish cross-platform release assets reliably

This commit is contained in:
reaper
2026-08-26 21:02:10 -05:00
parent c9f832d250
commit e6ed7e5de8
3 changed files with 23 additions and 6 deletions
+5
View File
@@ -84,7 +84,12 @@ jobs:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ github.event.inputs.release_tag || github.ref_name }}
run: |
gh release view "$env:RELEASE_TAG" --repo "$env:GITHUB_REPOSITORY" 2>$null | Out-Null
if ($LASTEXITCODE -ne 0) {
gh release create "$env:RELEASE_TAG" --repo "$env:GITHUB_REPOSITORY" --prerelease --title "Aurora Dockside $env:RELEASE_TAG" --notes "Cross-platform Aurora Dockside testing release."
}
gh release upload "$env:RELEASE_TAG" `
--repo "$env:GITHUB_REPOSITORY" `
"dist/aurora-dockside-$env:APP_VERSION-setup.exe" `
"dist/SHA256SUMS-windows.txt" `
--clobber