ci: publish dispatched macOS releases

This commit is contained in:
reaper
2026-08-26 21:11:58 -05:00
parent 1a2fb89876
commit 6630685da3
+10 -4
View File
@@ -2,6 +2,11 @@ name: macOS release
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
release_tag:
description: Existing GitHub release tag to receive the macOS files
required: true
default: v2.0.0-alpha.29
push: push:
tags: tags:
- 'v*' - 'v*'
@@ -96,11 +101,12 @@ jobs:
dist/module-catalog/*.pac dist/module-catalog/*.pac
- name: Publish macOS assets - name: Publish macOS assets
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ github.event.inputs.release_tag || github.ref_name }}
run: | run: |
gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \ gh release view "$RELEASE_TAG" --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 create "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --prerelease --title "Aurora Dockside ${RELEASE_TAG}" --notes "Cross-platform Aurora Dockside testing release."
gh release upload "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --clobber \ gh release upload "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --clobber \
dist/*.dmg dist/*-mac.zip dist/SHA256SUMS-macos.txt dist/*.dmg dist/*-mac.zip dist/SHA256SUMS-macos.txt