github发布pages的几种状态记录

大家好,我是1024小神,想进 技术群 / 私活群 / 股票群 或 交朋友都可以私信我,如果你觉得本文有用,一键三连 (点赞、评论、关注),就是对我最大的支持~

发布GitHub pages会有不同的几种状态,可以参考

409:表示已经发布过了

javascript 复制代码
{
    "message": "GitHub Pages is already enabled.",
    "documentation_url": "https://docs.github.com/rest/pages/pages#create-a-apiname-pages-site",
    "status": "409"
}

errored:表示发布失败

通常是发布过后的pages静态文件更新后,会自动重新发布,比如总的更新文件是3个,但是更新了1个之后就会出触发自动更新,但是第二个紧跟着就更新了,就会再次触发更新,这个时候第一个更新状态就会变成errored

javascript 复制代码
{
    "url": "https://api.github.com/repos/xxxxxx/xxxxxxx/pages",
    "status": "errored",
    "cname": null,
    "custom_404": false,
    "html_url": "https://xxxxxxx.github.io/xxxxxxx7/",
    "build_type": "legacy",
    "source": {
        "branch": "main",
        "path": "/docs"
    },
    "public": true,
    "protected_domain_state": null,
    "pending_domain_unverified_at": null,
    "https_enforced": true
}

status:null 说明正在发布pages

javascript 复制代码
{
    "url": "https://api.github.com/repos/1024xiaoshen/PakePlus-Android-v2.1.6/pages",
    "status": null,
    "cname": null,
    "custom_404": false,
    "html_url": "https://1024xiaoshen.github.io/PakePlus-Android-v2.1.6/",
    "build_type": "legacy",
    "source": {
        "branch": "main",
        "path": "/docs"
    },
    "public": true,
    "protected_domain_state": null,
    "pending_domain_unverified_at": null,
    "https_enforced": true
}

built:表示已经发布好了

javascript 复制代码
{
    "url": "https://api.github.com/repos/1024xiaoshen/PakePlus-Android-v2.1.6/pages",
    "status": "built",
    "cname": null,
    "custom_404": false,
    "html_url": "https://1024xiaoshen.github.io/PakePlus-Android-v2.1.6/",
    "build_type": "legacy",
    "source": {
        "branch": "main",
        "path": "/docs"
    },
    "public": true,
    "protected_domain_state": null,
    "pending_domain_unverified_at": null,
    "https_enforced": true
}

如果你有好的想法或需求,都可以私信我,我这里有很多程序员朋友喜欢用代码来创造丰富多彩的计算机世界

相关推荐
breeze jiang22 分钟前
React + WebGPU 在浏览器运行 DeepSeek:从 Worker 通信到流式生成
前端·javascript·react.js
a11177632 分钟前
家居生成器 Cartoon 开源项目 3D web
前端·开源
小林ixn39 分钟前
前端卡顿终结者:用 useRef 把 Web Worker 请进 React 项目
前端·react.js·前端框架
sunly_40 分钟前
React 三个重要概念:Ref、Props、State 详解
前端·javascript·react.js
weixin_4316004440 分钟前
前端对接 SSE 的两种常见方式
前端·后端·学习·ai·sse·nest.js
Mh1 小时前
如何使用GSAP实现一个 `pinned` 滚动楼层叙事?
前端·javascript·css
用户9385156350710 小时前
从零在浏览器里跑 DeepSeek-R1:WebGPU + Transformer.js 全链路实战
前端·设计模式·typescript
CodeSheep10 小时前
稚晖君公司人事大变动,来了!
前端·后端·程序员
鱼樱前端10 小时前
用 AI 做内容变收入
前端·人工智能·ai编程
浮生望11 小时前
React + TypeScript 组件设计进阶:从类型约束到无状态组件的三次进化
前端