Repository navigation
Conversation
wumingzhinu
added a commit
to wumingzhinu/OpenList-Worker
that referenced
this pull request
Oct 20, 2026
…oy to OpenListTeam#132 与 OpenListTeam#132(deploy-cf.yml)功能完全重叠:两者均为 push main 触发的 fetch-frontend + wrangler deploy。 若两个 PR 同时合并,push main 将触发双份并发部署争抢同一 Worker。 Cloudflare 自动部署统一由 OpenListTeam#132 承担;本 PR 收敛为 EdgeOne / ESA 部署与镜像同步三个纯新增 workflow。 如 OpenListTeam#132 最终未被采纳,可从本提交之前的 257a5c8 恢复该文件(含 workers_dev 入口兜底、 dry_run / route 手动输入、第三方 action 固定 SHA 等细节)。
Closed
13 of 22 tasks
Contributor
|
@wumingzhinu 这边看到 PR #96 已把与本 PR 功能重叠的 协同处理,另三条小提醒,供第一轮跑通参考:
|
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.
Summary / 摘要
新增
deploy-cf.ymlGitHub Actions 工作流,为无法使用 Cloudflare Git 集成部署的用户提供自动部署通道;同时放开wrangler.jsonc中被注释的 KV 绑定声明,使自动部署链路开箱即用。需求背景 / 动机
并非所有用户都能通过 Cloudflare 后台的 Git 集成(Workers Builds)完成部署:
对这类用户,GitHub Actions 部署是标准替代方案:构建跑在 GitHub 侧(无 CF 构建额度限制),只需一个 API Token 即可完成部署,不受上述账号/平台限制。
变更内容
新增
.github/workflows/deploy-cf.ymlmain(限 src/scripts/wrangler 等相关路径)+ 手动触发(workflow_dispatch)pnpm run build(拉取官方前端 + 构建 dist)→ 校验dist/index.html存在 →cloudflare/wrangler-action@v3执行wrangler deployCLOUDFLARE_API_TOKEN(及可选CLOUDFLARE_ACCOUNT_ID)Secretscancel-in-progress: false,避免部署中途被取消导致版本不完整wrangler.jsonc:放开 KV 绑定声明"kv_namespaces": [{ "binding": "KV" }](完全省略 id,依文件头注释中描述的 automatic provisioning 机制)用户可感知的行为变化
配置了 Secrets 的用户在 push 后即可通过 GitHub Actions 自动部署到 Cloudflare Workers,不再依赖 CF 侧 Git 集成
首次部署会自动创建
openlist-tsworkers-kv命名空间(此前需在控制台手动绑定)This PR has breaking changes.
This PR changes public API, config, storage format, or migration behavior.
(仅 wrangler.jsonc 声明变化:新增自动预配的 KV 绑定;不影响既有部署)
This PR requires corresponding changes in related repositories.
Related Issues / 关联 Issue
Relates to #34(一键部署/CI 无法绑定资源的问题;本 PR 在 GitHub Actions 场景下通过 automatic provisioning 解决)
Testing / 测试
go test不适用;已跑通pnpm run build全链路Checklist / 检查清单
AI Disclosure / AI 使用声明
Tools used: Other(Trae / Claude)
Usage scope:
Code generation
Review assistance
I have reviewed and validated all AI-assisted content included in this PR.
I have ensured that all AI-assisted commits include
Co-Authored-Byattribution.