Skip to content

上线 TanStack 门户并配置 GitHub Actions 自动部署 - #1

Merged
potato47 merged 2 commits into
mainfrom
codex/portal-rebuild
Oct 3, 2026
Merged

potato47 merged 2 commits into
mainfrom
codex/portal-rebuild

Conversation

@potato47

@potato47 potato47 commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

改动

将新站的 TanStack Start / React、Cloudflare Workers / D1 实现纳入主分支发布流程。公开内容预渲染为 Assets,动态认证、评论与审核由 Worker 处理,旧 Astro 基线保留在 archive/astro-before-rebuild。

GitHub Actions 对 PR 执行质量检查;合并到 main 后依次构建、迁移、部署和冒烟验证 staging / production,生产遵循 environment 审核规则。手动运行支持仅发布 staging,部署前检查凭据,设置任务超时并串行发布。

验证

  • PR 质量检查 全部通过,PR 部署任务按预期跳过。
  • 本地 bun run prepare、bun run check、bun run test(6 项)、bun run test:workers(11 项)通过。
  • bun run build、bun run build:check、生成路由一致性检查通过。
  • bun run docs:generate、bun run docs:check、相对 main 的 bun run docs:impact 通过。
  • 首次自动发布 #2 的 Quality checks、Deploy staging、Deploy production 全部成功。冒烟覆盖公开页面、RSS、sitemap、健康检查、404、安全响应头、认证/后台 no-store,以及生产 HTTPS / www 跳转。本次未重复真实账号登录与评论操作验收。

部署配置与首次发布记录

  • 合并提交:792548877820475897840436f0af8c0d2beffbf3;首次生产发布完成于 2026-10-03 23:14(Asia/Shanghai)。
  • staging / production GitHub environments 均只允许 main 分支,均已设置 CLOUDFLARE_ACCOUNT_ID 和 CLOUDFLARE_API_TOKEN。
  • 专用 Cloudflare account token 具备 Workers Scripts Write、D1 Write,以及仅 semicoder.dev 的 Workers Routes Write / Zone Read 权限;凭据未写入仓库。
  • production Required reviewers 为 potato47;staging 自动发布。本次生产审批已按用户授权完成,后续仍保留审核保护。
  • staging Worker version:3f7080db-1643-498c-9151-1010339bb4ac。
  • production Worker version:5c7f78c1-0921-4e93-b0f4-7e242043cd52。
  • 两个环境的 D1 均报告 No migrations to apply,本次未修改数据库 schema 或恢复数据。
  • 未升级 Cloudflare 套餐或添加付费服务。

文档影响

已更新部署手册,包括触发规则、GitHub environment / secret 配置、Cloudflare token 权限及失败后的处理方式。重构对应的架构、内容、数据和开发说明随本 PR 一并纳入。

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying semicoder with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1c5ef25
Status:🚫  Build failed.

View logs

@potato47
potato47 marked this pull request as ready for review October 3, 2026 15:10
@potato47
potato47 merged commit 7925488 into main Oct 3, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant