kimjosda
V2EX  ›  问与答

基于 GitHub CI 的 hexo 博客自动构建失败求助!

  •  
  •   kimjosda · Dec 11, 2022 · 1554 views
    This topic created in 1249 days ago, the information mentioned may be changed or developed.
    很久没有用 hexo 写博客了,最近新写了博客,在本地构建成功后,推送到远程分支,发现构建失败,

    查看构建信息,在 build with jekyll 出现了 github-pages 227|Error:The chic theme could not be found 的错误,上网搜了下没有搜到合适的结局啊方法,所以来 v 站请教以下广大的 v 友们。

    下面是我的博客地址 https://github.com/plusmultiply0/plusmultiply0.github.io
    我是在 hexo 分支保存博客文件信息,然后利用 travis ci 自动构建并推送到 master 分支形成博客的
    7 replies    2022-12-12 11:18:49 +08:00
    1462326016
        1
    1462326016  
       Dec 11, 2022
    kimjosda
        2
    kimjosda  
    OP
       Dec 11, 2022
    @1462326016 这个我试过了,不行
    duix
        3
    duix  
       Dec 11, 2022   ❤️ 1
    这个有用吗? > https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/

    在 repo 的根目录创建一个空的 .nojekyll 文件再试试。
    duix
        4
    duix  
       Dec 11, 2022
    不过本地构建后推送 public 目录到远程似乎更方便一点,省得在远程再写一遍生成的逻辑。
    amrice
        5
    amrice  
       Dec 11, 2022
    hexo --debug 看看
    kimjosda
        6
    kimjosda  
    OP
       Dec 12, 2022
    @KepaThings 谢谢,这个挺有效的,构建成功了
    kimjosda
        7
    kimjosda  
    OP
       Dec 12, 2022
    @KepaThings 我只是为了保存博客代码,后面我用 GitHub action 换了 Travis ci
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4545 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.