Skip to content

Commit b3a41f4

Browse files
feat: update jinja template
1 parent 327f0e4 commit b3a41f4

File tree

1 file changed

+4
-6
lines changed
  • repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
name: Deploy Docs
33

44
on:
5-
release:
6-
types: [published]
7-
branches:
8-
- main
9-
- master
10-
workflow_dispatch: # 保留手动触发选项
5+
push:
6+
tags:
7+
- '[0-9]+.[0-9]+.[0-9]+' # 匹配类似 1.0.0, 2.1.3 等格式的标签
8+
workflow_dispatch:
119

1210
permissions:
1311
contents: write # 用于部署到 GitHub Pages

0 commit comments

Comments
 (0)