Commit Graph
13 Commits
Author SHA1 Message Date
gouki ec55a1d536 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 一次性安装文档(管理员手工执行)
2026-08-09 00:10:45 +00:00
gouki daebda22ee fix(wish-tree): 图片扩展名改为 .jpg
Publish Mini Program Dev Version / publish (push) Failing after 1m38s
Build and Deploy Server / build (push) Failing after 3s
- 实际格式是 JPEG,扩展名从 .png 改为 .jpg
- 大小 332KB,远低于微信 2M 限制
2026-08-08 17:14:30 +00:00
gouki 4935ff06ff fix(ci): 修复workflow YAML语法错误导致Actions不触发
Build and Deploy Server / build (push) Failing after 4s
notify步骤多行字符串第二行未缩进,YAML解析失败,
Gitea忽略整个workflow,push不生成run。改为单行命令。
2026-08-08 11:05:54 +00:00
gouki 760dab78d8 feat(home): 节气精确查表+佛历倒计时随日期+老黄历方框+CI修复
- 节气改用2000-2060精确查表(天文算法生成),修复立秋显示为大暑
- 佛历倒计时/节日速查以当前选中日期为基准,切换日期实时更新
- 大日历顶部节日区/佛历区固定高度,空着也占位不再跳动
- 大日期加老黄历式方框(双线边框,节假日红/工作日绿)
- 修复npm test脚本exit码导致CI在测试步骤中断
- workflow增加workflow_dispatch支持手动触发
2026-08-08 01:29:40 +00:00
gouki bb9c19c99f fix(wish-tree): 修复切换树后导航消失和树类型错误
Build and Deploy Server / build (push) Failing after 2s
- loadWishes使用safeInitRibbons/safeInitDanmaku,防止初始化出错导致页面崩溃
- getCurrentTree确保返回带type字段的有效树对象
- 添加错误处理,避免未定义错误
2026-08-07 22:49:13 +00:00
gouki b5bdf4c88d fix(wish-tree): 修复切换树时导航栏消失问题
Publish Mini Program Dev Version / publish (push) Failing after 10m47s
Build and Deploy Server / build (push) Failing after 2s
- Canvas添加z-index: 1,确保不覆盖导航栏
- top-bar添加pointer-events: none,子元素恢复auto
- WXML添加trees.length保护,防止空数组访问
- switchTree添加空数组保护
2026-08-07 21:56:38 +00:00
gouki ecdeec9d93 ci: 触发构建(Secret/Variables 已就绪)
Publish Mini Program Dev Version / publish (push) Failing after 10m43s
2026-08-07 00:01:42 +00:00
gouki e076d40daa fix: 注册 lunar 专属运行器并修正工作流标签
Publish Mini Program Dev Version / publish (push) Failing after 4s
Build and Deploy Server / build (push) Failing after 44s
- 在 doc79 注册 act_runner-lunar(ID 43),模式参考 readitlater
- lunar-node: docker://node:22-bookworm(小程序构建)
- lunar-ci: docker://golang:1.22-bookworm(后端构建)
- 产物挂载 /opt/lunar/ci-artifacts:/ci-artifacts
- .gitignore 补充 web/ 和 .ci-tmp/
2026-08-06 23:27:41 +00:00
gouki c19854ce77 fix: 参考 new-pet 项目修正 Actions 配置
Publish Mini Program Dev Version / publish (push) Waiting to run
Build and Deploy Server / build (push) Waiting to run
- 使用 hk 运行器(空闲状态)
- 添加详细注释说明
- 参考 new-pet 的成熟配置
- 确保只在指定目录变更时触发
2026-08-06 22:59:56 +00:00
gouki 09d8a39946 feat: 添加目录触发的 Actions 工作流
Publish Mini Program Dev Version / publish (push) Waiting to run
Build and Deploy Server / build (push) Waiting to run
- miniapp-preview.yml: 只在 mini/** 目录变更时触发
- server-deploy.yml: 只在 server/** 目录变更时触发
- 使用 hk 运行器
- 避免不必要的资源浪费
2026-08-06 22:42:58 +00:00
gouki f801094aad fix: 修改运行器标签为 ubuntu-latest
Publish Mini Program Dev Version / publish (push) Failing after 1s
2026-08-06 22:40:52 +00:00
gouki 90baf8441c fix: 修改 Actions 触发条件为所有推送
Publish Mini Program Dev Version / publish (push) Waiting to run
2026-08-06 22:23:52 +00:00
gouki 9c178e6d49 ci: 添加小程序自动部署配置
- 添加 Gitea Actions workflow: miniapp-preview.yml
- 添加 CI 脚本: upload-ci.cjs, preview-ci.cjs
- 添加版本解析: resolve-version.cjs, resolve-upload-desc.cjs
- 添加 mini/package.json 用于 miniprogram-ci 依赖
2026-08-06 09:20:43 +00:00