Commit Graph
12 Commits
Author SHA1 Message Date
gouki d73bbf53cf fix(ci): 精简 runner 环境自适应安装 curl(发布 release 依赖)
Build and Publish Server / build (push) Failing after 2m55s
2026-08-09 18:06:06 +00:00
gouki ffac513b4a fix(ci): checkout 改用 gitea.* 表达式传参(runner 未注入 GITEA_* 默认环境变量)
Build and Publish Server / build (push) Failing after 1m22s
Publish Mini Program Dev Version / publish (push) Successful in 2m52s
2026-08-09 17:52:50 +00:00
gouki fdbf8307bb fix(ci): 兼容精简 runner(Alpine)环境
Build and Publish Server / build (push) Failing after 0s
Publish Mini Program Dev Version / publish (push) Failing after 3s
- checkout 改为原生 git 浅克隆(action-checkout 依赖 node,Alpine runner 无)
- 发布 release 改用 grep/sed 解析 JSON(不依赖 python3)
- 小程序密钥 PEM 规整改用 node 实现
- 通知步骤增加容错(失败不阻断主流程)
2026-08-09 17:44:47 +00:00
gouki e92b739cb6 fix(ci): runs-on 改用标准标签 ubuntu-latest(hk/bt-runner 均可接单)
Build and Publish Server / build (push) Failing after 1s
Publish Mini Program Dev Version / publish (push) Failing after 2m23s
2026-08-09 17:26:11 +00:00
gouki b507d6c154 feat(ci): 迁移到 hk runner + Release 产物分发,解除对 doc79 runner 的依赖
Publish Mini Program Dev Version / publish (push) Canceled after 0s
Build and Publish Server / build (push) Canceled after 0s
- 两个工作流 runs-on 改为 hk(在线);Go/Node 工具链自包含下载+工作区缓存
- 后端产物改为发布 Gitea Release 附件(server-v<版本>),与 runner 位置解耦
- deploy-watch.sh 重写为从 Release 拉取:匿名/令牌 HTTPS 下载、包结构预检、
  按 release id 幂等、失败下轮重试
- 移除对 /ci-artifacts 本机目录的依赖(原设计要求 runner 与生产同机)
- PULL_DEPLOY.md 架构图同步更新
2026-08-09 17:17:23 +00:00
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 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 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