Skip to content

Commit a7c2af2

Browse files
committed
ci: 部署工作流补 workflow_dispatch 手动触发入口
deploy-server / deploy-website 仅在 main 的 server/**、website/** 路径 变更时触发,且无手动入口——PR #2 修复后的新部署配置(scp 上传、 --env-file、真实服务器路径)至今从未实际执行过。 补 workflow_dispatch 后可手动触发做部署链路首跑验证,也可用于 紧急重部署(不依赖路径变更)。
1 parent 2c5a506 commit a7c2af2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/deploy-server.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches: [main]
66
paths: ['server/**']
7+
# 手动触发入口:用于部署链路验证与紧急重部署(不依赖路径变更)
8+
workflow_dispatch:
79

810
jobs:
911
deploy:

‎.github/workflows/deploy-website.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches: [main]
66
paths: ['website/**']
7+
# 手动触发入口:用于部署链路验证与紧急重部署(不依赖路径变更)
8+
workflow_dispatch:
79

810
jobs:
911
deploy:

0 commit comments

Comments
 (0)