chore(workflow): 更新文档发布工作流配置

- 修改标签匹配模式从 '*' 到 'v*' 以确保版本标签格式一致性
- 添加条件判断逻辑以精确控制工作流触发时机
- 增加对预发布标签的过滤处理
- 为手动文档发布增加分支合并条件支持
This commit is contained in:
GeWuYou 2026-02-11 13:10:55 +08:00 committed by gewuyou
parent 713dd65d50
commit 5e92232cc6

View File

@ -5,7 +5,7 @@ name: Publish Docs
on:
push:
tags:
- '*'
- 'v*'
permissions:
contents: read
pages: write
@ -17,6 +17,9 @@ concurrency:
jobs:
build-and-deploy:
if: |
(startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-'))
|| (github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release doc]'))
runs-on: ubuntu-latest
environment: