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
2 changes: 1 addition & 1 deletion .github/compose/d1-read.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# .github/compose/d1-read.sh core "SELECT name FROM d1_migrations ORDER BY id"
# .github/compose/d1-read.sh feed "SELECT COUNT(*) FROM feed_items"
#
# core = ghfind (shared by dev and production), feed = ghfind-feed. Schema changes go
# core = ghfind, feed = ghfind-feed (production is the only environment). Schema changes go
# through migrations and ops/feed-production-schema-release.json in ghfind-server,
# never through this script, so it accepts one SELECT / WITH / EXPLAIN / read-only
# PRAGMA statement and rejects anything that writes.
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Verify Cloudflare D1 migrations from an empty database
run: |
pnpm exec wrangler d1 migrations apply ghfind --local --persist-to "$RUNNER_TEMP/ghfind-d1-migrations"
pnpm exec wrangler d1 migrations apply ghfind-feed-dev --local --persist-to "$RUNNER_TEMP/ghfind-d1-migrations"
pnpm exec wrangler d1 migrations apply GHFIND_FEED_D1 --local --persist-to "$RUNNER_TEMP/ghfind-d1-migrations"

# Required database contracts run in the separate isolated service job.
- name: Test Go packages
Expand Down Expand Up @@ -158,16 +158,16 @@ jobs:
pnpm --filter @ghfind/web build
pnpm --filter @ghfind/router typecheck
pnpm --filter @ghfind/api typecheck
pnpm --filter @ghfind/api exec wrangler deploy --dry-run --env dev --outdir "$RUNNER_TEMP/ghfind-api-dist"
pnpm --filter @ghfind/api exec wrangler deploy --dry-run --env production --outdir "$RUNNER_TEMP/ghfind-api-dist"
pnpm --filter @ghfind/cost-monitor typecheck
pnpm --filter @ghfind/cost-monitor exec wrangler types --env production --include-runtime false --check
pnpm --filter @ghfind/cost-monitor build
node --test scripts/cost-monitor-watchdog.test.mjs scripts/cost-monitor-verify.test.mjs scripts/traffic-report-preview.test.mjs
node scripts/cost-monitor-e2e.mjs
pnpm --filter @ghfind/coord typecheck
pnpm --filter @ghfind/coord exec wrangler deploy --dry-run --env dev --outdir "$RUNNER_TEMP/ghfind-coord-dist"
pnpm --filter @ghfind/coord exec wrangler deploy --dry-run --env production --outdir "$RUNNER_TEMP/ghfind-coord-dist"
pnpm --filter @ghfind/talent typecheck
pnpm --filter @ghfind/talent exec wrangler deploy --dry-run --env dev --outdir "$RUNNER_TEMP/ghfind-talent-dist"
pnpm --filter @ghfind/talent exec wrangler deploy --dry-run --env production --outdir "$RUNNER_TEMP/ghfind-talent-dist"

- name: Record actual successful verify checkout
run: node scripts/feed-ci-evidence.mjs record-job verify "$RUNNER_TEMP/verify.json"
Expand Down
3 changes: 2 additions & 1 deletion docs/deployment.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ ghfind 是 GitHub 开发者与开源项目的评估平台,生产站点为 <htt
| 环境 | 地址 | 说明 |
| --- | --- | --- |
| 生产 | <https://ghfind.com> | 只能由自动流水线部署 |
| 开发 | <https://dev.ghfind.com> | 手动部署,用于验证;与生产共用部分数据,需按手册预检 |

开发环境(dev.ghfind.com)与按 PR 部署的预览环境已于 2026-11-09 下线;上线前的检查由各仓库 PR 的 CI 和 `deploy` 分支上的完整测试完成。

## 4. 发布与部署流程

Expand Down
Loading