Gate release on successful CI run
Uses workflow_run to trigger after CI completes, skipping on failure.
Manual dispatch still works unconditionally.

Assisted-by: Claude Opus 4.6 via pi
change tysmorsqrkutsypvswkpqwumqzswzmwu
commit 37db0273058bd46883e8df6e0d71bb3652c79e14
author Alpha Chen <alpha@kejadlen.dev>
date
parent szlkmwss
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1911da0..bf81470 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -2,7 +2,9 @@ name: Release
 
 on:
   workflow_dispatch:
-  push:
+  workflow_run:
+    workflows: [CI]
+    types: [completed]
     branches: [main]
 
 permissions:
@@ -10,6 +12,7 @@ permissions:
 
 jobs:
   release:
+    if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
     runs-on: macos-latest
     steps:
       - uses: actions/checkout@v4