Skip to content

Commit 96577ca

Browse files
colyerdengShawnDen-coder
authored andcommitted
fix: fix template github action
1 parent a02300d commit 96577ca

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/deploy_docs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Deploy Docs
22

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

99
permissions:
1010
contents: write # 用于部署到 GitHub Pages

.github/workflows/release_build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: release-build
22

33
on:
4-
release:
5-
types: [published]
6-
branches: [master, main]
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+' # 匹配类似 1.0.0, 2.1.3 等格式的标签
77
workflow_dispatch:
88
inputs:
99
version:

0 commit comments

Comments
 (0)