Skip to content

Commit b278532

Browse files
author
colyerdeng
committed
chore: merge branch 'Ci/update-github-action'
2 parents f51472d + 45394f5 commit b278532

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/deploy_docs.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Deploy Docs
22

33
on:
4-
push:
5-
tags:
6-
- '[0-9]*.[0-9]*.[0-9]*' # 匹配语义化版本号标签 (e.g., 1.0.0, 1.0.0-beta)
4+
release:
5+
types: [published] # 当 release 发布时触发,而不是创建时
76
workflow_dispatch: # 保留手动触发选项
87

98
permissions:

repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/deploy_docs.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
name: Deploy Docs
33

44
on:
5-
push:
6-
tags:
7-
- '[0-9]*.[0-9]*.[0-9]*' # 匹配语义化版本号标签 (e.g., 1.0.0, 1.0.0-beta)
5+
release:
6+
types: [published] # 当 release 发布时触发,而不是创建时
87
workflow_dispatch: # 保留手动触发选项
98

109
permissions:

repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/release_build.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: release_build
22

33
on:
4+
<<<<<<< HEAD
45
push:
56
tags:
67
- '[0-9]*.[0-9]*.[0-9]*' # 匹配语义化版本号标签 (e.g., 1.0.0, 1.0.0-beta)
8+
=======
9+
release:
10+
types: [published] # 当 release 发布时触发,而不是创建时
11+
>>>>>>> Ci/update-github-action
712
workflow_dispatch:
813
inputs:
914
version:

0 commit comments

Comments
 (0)