diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 28a98a4..817c7d4 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -2,6 +2,11 @@ name: macOS release on: workflow_dispatch: + inputs: + release_tag: + description: Existing GitHub release tag to receive the macOS files + required: true + default: v2.0.0-alpha.29 push: tags: - 'v*' @@ -96,11 +101,12 @@ jobs: dist/module-catalog/*.pac - name: Publish macOS assets - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' env: GH_TOKEN: ${{ github.token }} + RELEASE_TAG: ${{ github.event.inputs.release_tag || github.ref_name }} 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 \ + gh release view "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \ + gh release create "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --prerelease --title "Aurora Dockside ${RELEASE_TAG}" --notes "Cross-platform Aurora Dockside testing release." + gh release upload "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --clobber \ dist/*.dmg dist/*-mac.zip dist/SHA256SUMS-macos.txt