ci: 触发分支改为 main(提交或合并入 main 才部署)
- deploy.yml 触发条件 dev → main;PR 合并进 main 产生的 push 同样覆盖 - 文档同步:日常开发走 dev,合并 main 才上线 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
name: build-and-deploy
|
||||
|
||||
on:
|
||||
# 仅 main 有提交(含 PR 合并入 main)时触发
|
||||
push:
|
||||
branches: [dev]
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user