ci: allow manual workflow_dispatch runs on master to publish releases
Asteria Qt CI / rebuild-images (linux-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (linux-x86_64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-x86_64) (push) Skipped
Asteria Qt CI / build-macos (push) Successful in 10s
Asteria Qt CI / test-macos (push) Successful in 39s
Asteria Qt CI / build-linux (push) Successful in 1m13s
Asteria Qt CI / build-windows (push) Successful in 1m28s
Asteria Qt CI / build-windows-arm64 (push) Successful in 1m28s
Asteria Qt CI / build-linux-arm64 (push) Successful in 1m33s
Asteria Qt CI / package-windows-arm64 (push) Successful in 18s
Asteria Qt CI / package-macos (push) Successful in 57s
Asteria Qt CI / package-windows (push) Successful in 22s
Asteria Qt CI / test-linux (push) Successful in 3m20s
Asteria Qt CI / package-linux-arm64 (push) Successful in 18s
Asteria Qt CI / package-linux (push) Successful in 18s
Asteria Qt CI / release (push) Successful in 8s
Asteria Qt CI / rebuild-images (linux-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (linux-x86_64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-x86_64) (push) Skipped
Asteria Qt CI / build-macos (push) Successful in 10s
Asteria Qt CI / test-macos (push) Successful in 39s
Asteria Qt CI / build-linux (push) Successful in 1m13s
Asteria Qt CI / build-windows (push) Successful in 1m28s
Asteria Qt CI / build-windows-arm64 (push) Successful in 1m28s
Asteria Qt CI / build-linux-arm64 (push) Successful in 1m33s
Asteria Qt CI / package-windows-arm64 (push) Successful in 18s
Asteria Qt CI / package-macos (push) Successful in 57s
Asteria Qt CI / package-windows (push) Successful in 22s
Asteria Qt CI / test-linux (push) Successful in 3m20s
Asteria Qt CI / package-linux-arm64 (push) Successful in 18s
Asteria Qt CI / package-linux (push) Successful in 18s
Asteria Qt CI / release (push) Successful in 8s
Previously, the release job and the macOS DMG release-attachment step gated on `github.event_name == 'push'`, which caused manual Gitea UI runs (`workflow_dispatch`) on `master` to skip creating the release, uploading assets, and bumping `VERSION` after all builds succeeded. Update the condition in `.gitea/workflows/ci.yml` (and document it in `AGENTS.md`) so `master` runs triggered by either `push` or `workflow_dispatch` (when `rebuild_images` is false) execute the release flow while preserving `success()` gating on upstream packaging jobs and keeping PRs, feature branches, and image-rebuild runs isolated.
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -340,7 +340,7 @@ jobs:
|
||||
path: dist-macos/Asteria.dmg
|
||||
retention-days: 1
|
||||
- name: Attach DMG if master release already exists
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
if: ${{ (github.ref == 'refs/heads/master' || github.ref_name == 'master') && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && !inputs.rebuild_images)) }}
|
||||
continue-on-error: true
|
||||
env:
|
||||
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
|
||||
@@ -350,7 +350,7 @@ jobs:
|
||||
|
||||
# ── Publish Gitea Release, attach binaries, and bump VERSION (master only) ───
|
||||
release:
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
if: ${{ success() && (github.ref == 'refs/heads/master' || github.ref_name == 'master') && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && !inputs.rebuild_images)) }}
|
||||
needs:
|
||||
- package-linux
|
||||
- package-linux-arm64
|
||||
|
||||
Reference in new issue
Block a user