日志:
Deploy to Cloudflare Pages
1 Run cloudflare/wrangler-action@v3
7 🔍 Checking for existing Wrangler installation
12 📥 Installing Wrangler
29 🚀 Running Wrangler Commands
30 /usr/local/bin/npx wrangler pages deploy . --project-name=xget --branch=main
31 ▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes
32
33 To silence this warning, pass in --commit-dirty=true
34
35
36
37 ✘ [ERROR] A request to the Cloudflare API (/accounts/***/pages/projects/xget) failed.
38
39 Project not found. The specified project name does not match any of your existing projects. [code: 8000007]
40
41 If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
42
43
44 Error: The process '/usr/local/bin/npx' failed with exit code 1
45 Error: 🚨 Action failed
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
部署类型
其他平台部署
技术经验水平
中级 - 有一些经验
当前遇到的问题
在将项目部署到EdgeOne Pages和CloudFlare Pages时,GitHub Actions出现类似的报错且任务执行失败,如图所示(见错误信息部分)
已尝试的步骤
根据文档,fork Xget仓库,然后设置仓库的以下信息:
最后进入仓库的Actions页面,手动运行任务:
发现这些任务最终会失败,并产生如图所示的报错
错误信息
操作系统
其他
Node.js 版本
No response
npm 版本
No response
Cloudflare 账户状态
有免费账户
自定义需求
No response
目标域名
No response
预期使用量
个人使用 - 偶尔使用
配置相关问题
No response
紧急程度
低 - 有时间慢慢解决
附加信息
No response
确认
GitHub 来源:https://github.com/xixu-me/xget/issues/141
作者:Mooling0602 · 创建时间:2025-12-20T14:36:47Z
参考:https://github.com/Mooling0602/xget/actions
GitHub 来源:https://github.com/xixu-me/xget/issues/141#issuecomment-3677867500
作者:Mooling0602 · 创建时间:2025-12-20T14:38:23Z
日志看不懂,但初步分析认为代码在action runner中运行时出现git操作故障,尚未连接到服务托管平台
GitHub 来源:https://github.com/xixu-me/xget/issues/141#issuecomment-3677868626
作者:Mooling0602 · 创建时间:2025-12-20T14:40:14Z
请认真阅读 REAMDE,fork 时勿勾选“Copy the
mainbranch only”GitHub 来源:https://github.com/xixu-me/xget/issues/141#issuecomment-3677872683
作者:xixu-me · 创建时间:2025-12-20T14:46:20Z
先说结论:
fork 时就算没勾选“Copy the main branch only”,Cloudflare Pages 也无法构建。根据报错信息,解决方法是:需要先在 Cloudflare 控制台手动创建一个同名的空 Pages 项目,或者通过命令行创建一次。
背景:
Cloudflare 分配的 *.workers.dev 域名在某些网络环境下(特别是国内)容易遭遇阻断或连接不稳定。而 Pages 分配的 *.pages.dev 域名通常连通性更好,不需要你额外购买和绑定自定义域名也能较好地使用。
日志:
Deploy to Cloudflare Pages
1 Run cloudflare/wrangler-action@v3
7 🔍 Checking for existing Wrangler installation
12 📥 Installing Wrangler
29 🚀 Running Wrangler Commands
30 /usr/local/bin/npx wrangler pages deploy . --project-name=xget --branch=main
31 ▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes
32
33 To silence this warning, pass in --commit-dirty=true
34
35
36
37 ✘ [ERROR] A request to the Cloudflare API (/accounts/***/pages/projects/xget) failed.
38
39 Project not found. The specified project name does not match any of your existing projects. [code: 8000007]
40
41 If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
42
43
44 Error: The process '/usr/local/bin/npx' failed with exit code 1
45 Error: 🚨 Action failed
具体步骤:
1.登录 Cloudflare Dashboard。
2.进入左侧 计算和 AI -> Workers & Pages。
3.点击右上角 创建应用程序 ( Create application) -> 选择 Pages (或想要部署 Pages?[开始使用])-> 选择 拖放文件 直接从计算机上传站点的资产,包括 HTML、CSS 和 JS 文件。(或者 "Create using Direct Upload")。
(注意:这里不要选 “导入现有 Git 存储库 从导入现有 Git 存储库开始。” (或“Connect to Git"),因为你的 Git Action 会负责上传。选 "拖放文件 Direct Upload" 是为了先占个坑。)
4.这时候它会让你为项目创建名称,在 项目名称(Project name) 里输入 xget(必须和你在 GitHub Action 报错信息里的一样,也就是 --project-name=xget 里的名字)。点击创建项目(Create project)
5.之后它会让你上传文件,可以直接关掉页面。
6.重试 GitHub Action,即可成功。
其他 Pages 未测试,仅供参考,谢谢。
GitHub 来源:https://github.com/xixu-me/xget/issues/141#issuecomment-3766266477
作者:Xxx91n · 创建时间:2026-01-19T03:45:58Z