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
}

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

相关推荐
kyriewen5 分钟前
产品经理把PRD写成“天书”,我用AI半小时重写了一遍,他当场愣住
前端·ai编程·cursor
humcomm44 分钟前
元框架的工作原理详解
前端·前端框架
canonical_entropy1 小时前
Attractor Before Harness: AI 大规模开发的方法论
前端·aigc·ai编程
zhangxingchao1 小时前
多 Agent 架构到底怎么选?从 Claude Agent Teams、Cognition/Devin 到工程落地原则
前端·人工智能·后端
IT_陈寒1 小时前
SpringBoot那个自动配置的坑,害我排查到凌晨三点
前端·人工智能·后端
Honor丶Onlyou1 小时前
VS Code 右键菜单修复记录
前端
PILIPALAPENG2 小时前
Python 语法速成指南:前端开发者视角(JS 类比版)
前端·人工智能·python
JYeontu2 小时前
轮播图不够惊艳?试下这个立体卡片轮播图
前端·javascript·css
张就是我1065922 小时前
从前端角度理解 CVE-2026-31431
前端
AGoodrMe2 小时前
swift基础之async/await
前端·ios