Repository navigation
chore: 删掉 wrangler 直传的 deploy 工作流 - #2
Merged
Merged
Conversation
改用 Cloudflare Pages 的 Git 集成(与上游一致):CF 那边自己构建自己发布,这个「本地构建 + wrangler pages deploy」的 workflow 就是重复的。它还需要两个 secret,不配就每次推 main 都失败。 留着它更糟:将来一旦补上 secret,就会有两个发布者写同一个 Pages 项目。 ci.yml 保留 —— 它跑构建与站内链接/锚点检查,管的是 PR 的门禁,与发布无关。 部署步骤见 notes/docs-deploy.md。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
参考上游改用 Cloudflare Pages 的 Git 集成:CF 那边自己构建自己发布,这个「本地构建 +
wrangler pages deploy dist」的工作流就是重复的。它还需要
CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID两个 secret —— 不配就每次推 main 都失败。留着更糟:将来一旦补上 secret,就会两个发布者写同一个 Pages 项目。ci.yml保留:它跑构建与站内链接/锚点检查,管的是 PR 门禁,与发布无关。后台要做的事(一次性)
验收:CF 构建日志出现
prerendered 21 routes;线上确认首页安装命令指向raw.githubusercontent.com/spot-probe/monitor/main/install-hub.sh、仓库链接是spot-probe/*、docker 页只有 GHCR。