ci: publish cross-platform release assets reliably
This commit is contained in:
@@ -66,11 +66,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \
|
||||||
gh release create "$GITHUB_REF_NAME" \
|
gh release create "$GITHUB_REF_NAME" \
|
||||||
--repo "$GITHUB_REPOSITORY" \
|
--repo "$GITHUB_REPOSITORY" \
|
||||||
--prerelease \
|
--prerelease \
|
||||||
--title "Aurora Dockside ${GITHUB_REF_NAME}" \
|
--title "Aurora Dockside ${GITHUB_REF_NAME}" \
|
||||||
--notes "Linux testing release with the bundled Aurora Native runtime, WordPress and Drupal PAC modules, native logs, database portability, and automatic Adminer access." \
|
--notes "Cross-platform testing release with Aurora Native, bundled WordPress and Drupal PAC modules, native logs, database portability, and automatic Adminer access."
|
||||||
|
gh release upload "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --clobber \
|
||||||
dist/*.AppImage \
|
dist/*.AppImage \
|
||||||
dist/native-runtime/*.tar.gz \
|
dist/native-runtime/*.tar.gz \
|
||||||
dist/module-catalog/*.pac \
|
dist/module-catalog/*.pac \
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-macos:
|
build-macos:
|
||||||
@@ -94,3 +94,13 @@ jobs:
|
|||||||
dist/*.yml
|
dist/*.yml
|
||||||
dist/SHA256SUMS-macos.txt
|
dist/SHA256SUMS-macos.txt
|
||||||
dist/module-catalog/*.pac
|
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
|
||||||
|
|||||||
@@ -84,7 +84,12 @@ jobs:
|
|||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
RELEASE_TAG: ${{ github.event.inputs.release_tag || github.ref_name }}
|
RELEASE_TAG: ${{ github.event.inputs.release_tag || github.ref_name }}
|
||||||
run: |
|
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" `
|
gh release upload "$env:RELEASE_TAG" `
|
||||||
|
--repo "$env:GITHUB_REPOSITORY" `
|
||||||
"dist/aurora-dockside-$env:APP_VERSION-setup.exe" `
|
"dist/aurora-dockside-$env:APP_VERSION-setup.exe" `
|
||||||
"dist/SHA256SUMS-windows.txt" `
|
"dist/SHA256SUMS-windows.txt" `
|
||||||
--clobber
|
--clobber
|
||||||
|
|||||||
Reference in New Issue
Block a user