From 5e92232cc6214ff4c515005c401fc9b52566e49d Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:10:55 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=8F=91=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改标签匹配模式从 '*' 到 'v*' 以确保版本标签格式一致性 - 添加条件判断逻辑以精确控制工作流触发时机 - 增加对预发布标签的过滤处理 - 为手动文档发布增加分支合并条件支持 --- .github/workflows/publish-docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index f84bdad..42d7495 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -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: