diff --git a/.github/workflows/linux-release.yml b/.github/workflows/linux-release.yml index 4475bca..0e18ef3 100644 --- a/.github/workflows/linux-release.yml +++ b/.github/workflows/linux-release.yml @@ -66,11 +66,13 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - gh release create "$GITHUB_REF_NAME" \ - --repo "$GITHUB_REPOSITORY" \ - --prerelease \ - --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." \ + 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 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/native-runtime/*.tar.gz \ dist/module-catalog/*.pac \ diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 5187acd..28a98a4 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -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 diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 62128e9..f73039b 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -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