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
+11 -1
View File
@@ -7,7 +7,7 @@ on:
- 'v*'
permissions:
contents: read
contents: write
jobs:
build-macos:
@@ -94,3 +94,13 @@ jobs:
dist/*.yml
dist/SHA256SUMS-macos.txt
dist/module-catalog/*.pac
- name: Publish macOS assets
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \
gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --prerelease --title "Aurora Dockside ${GITHUB_REF_NAME}" --notes "Cross-platform Aurora Dockside testing release."
gh release upload "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --clobber \
dist/*.dmg dist/*-mac.zip dist/SHA256SUMS-macos.txt