ci(release): run full 2.9.0 promotion preflight on PR; only tag on verified main

This commit is contained in:
cflmy committed 2026-11-18 16:58:55 +08:00
1 parent c952765845
commit f8d2f0a9d6
1 file changed
+9 -1
+9 -1
View File
@@ -10,6 +10,14 @@ on:
- "Cargo.toml"
- "doc/releases/v2.9.0.md"
- ".github/workflows/release-v2.9.yml"
pull_request:
paths:
- "Cargo.toml"
- "Cargo.lock"
- "crates/marqdo-wasm/Cargo.toml"
- "ext/VERSION"
- "doc/releases/v2.9.0.md"
- ".github/workflows/release-v2.9.yml"
workflow_dispatch:
permissions:
contents: write
@@ -19,7 +27,6 @@ concurrency:
cancel-in-progress: false
jobs:
verify-and-dispatch:
if: github.repository == 'cflmy/marqdo' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -66,6 +73,7 @@ jobs:
cargo test --locked --test executable_knowledge
cargo test --locked --test release_handbook
- name: Create v2.9.0 only once and dispatch full platform release
if: github.repository == 'cflmy/marqdo' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
run: |