fix(ci): 部署链路重构为拉取式,修复工作流问题
Publish Mini Program Dev Version / publish (push) Canceled after 0s
Build and Deploy Server / build (push) Canceled after 0s

- deploy.sh: 目录级原子切换(current.new/current.old)替代 rm -rf 空窗式替换;
  健康检查改为轮询 /api/version HTTP 接口;失败自动回滚上一版本
- 新增 deploy-watch.sh: 服务器本地 systemd timer 轮询 /ci-artifacts 产物指纹,
  发现新版本自动部署——CI 与 AI 不再需要 SSH 到服务器执行任何命令
- server-deploy.yml: 部署包补入 web/ 后台静态资源;移除永不生效的前端构建死代码;
  通知文案如实改为'构建成功'(部署由服务器侧 watcher 完成)
- miniapp-preview.yml: 移除无意义的 --runInBand 测试参数
- 新增 PULL_DEPLOY.md 一次性安装文档(管理员手工执行)
This commit is contained in:
gouki
2026-08-09 00:10:45 +00:00
parent f90b7c7764
commit ec55a1d536
6 changed files with 453 additions and 43 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
run: npm ci
- name: Run tests
working-directory: mini
run: npm test -- --runInBand
run: npm test
- name: Configure production API and app version
working-directory: mini
env: