mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-25 04:59:01 +08:00
chore(workflow): 更新文档发布工作流配置
- 修改标签匹配模式从 '*' 到 'v*' 以确保版本标签格式一致性 - 添加条件判断逻辑以精确控制工作流触发时机 - 增加对预发布标签的过滤处理 - 为手动文档发布增加分支合并条件支持
This commit is contained in:
parent
713dd65d50
commit
5e92232cc6
5
.github/workflows/publish-docs.yml
vendored
5
.github/workflows/publish-docs.yml
vendored
@ -5,7 +5,7 @@ name: Publish Docs
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'v*'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pages: write
|
pages: write
|
||||||
@ -17,6 +17,9 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user