Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/deployment.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ ghfind 是 GitHub 开发者与开源项目的评估平台,生产站点为 <htt
| 写保护 | deploy 分支受仓库规则保护,只有组织自有的发布机器人(GitHub App)可以写入,其他账号的推送都会被规则拒绝 |
| 数据库互斥 | 网站发布与应用发布共用同一个互斥组,核心数据库迁移不会并发执行 |

### 4.3 实际耗时(参考)
### 4.3 发布顺序规则

公开仓库的流水线会调用后端仓库的脚本,而部署提交使用的是公开仓库**最新已发布版本**中的流水线。因此,如果后端改动删除或改名了流水线依赖的脚本或命令,必须先更新并发布公开仓库,再发布后端,否则部署前的全量测试会失败,生产不会更新(不影响线上运行)。

### 4.4 实际耗时(参考)

| 阶段 | 通常耗时 |
| --- | --- |
Expand Down
9 changes: 9 additions & 0 deletions docs/runbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ workflows succeed on the `deploy` commit that pins it.
If the public repository changes ownership of a path (see **add-path**), release
`FindAny/ghfind` first, then the component that relies on it.

**Release order when removing or renaming things.** The hub workflows call scripts
and `package.json` commands from ghfind-server, and a `deploy` commit runs the
workflows of the latest *released* hub. So when a server change removes or renames
something a hub workflow uses, update the hub, merge it and release it first. Only
then release the server. Otherwise CI on `deploy` fails and nothing deploys. (This
happened on 2026-11-08: server v1.0.5 removed `smoke:backend:*` while hub v1.0.1
still ran it. Fixed by hub v1.0.2.) Before tagging, check with
`grep -rn '<removed name>' .github/` here.

### compose

`Compose release` (Actions → Compose release → Run workflow, or `gh workflow run`) has
Expand Down
Loading