ci: publish cross-platform release assets reliably
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user