Can';t生成github页面一般错误
我正在使用travis CI发布我的jekyll网站 有关部分包括: 特拉维斯·伊梅尔先生Can';t生成github页面一般错误,github,jekyll,travis-ci,github-pages,Github,Jekyll,Travis Ci,Github Pages,我正在使用travis CI发布我的jekyll网站 有关部分包括: 特拉维斯·伊梅尔先生 language: ruby rvm: - 2.3.3 before_script: - chmod +x ./script/cibuild # or do this locally and commit # Assume bundler is being used, therefore # the `install` step will run `bundle install` by defau
language: ruby
rvm:
- 2.3.3
before_script:
- chmod +x ./script/cibuild # or do this locally and commit
# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script: ./script/cibuild
# branch whitelist, only for GitHub Pages
branches:
only:
- gh-pages # test the gh-pages branch
- /pages-(.*)/ # test every branch which starts with "pages-"
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
sudo: false # route your build to the container-based infrastructure for a faster build
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: gh-pages
我的cibuild文件如下所示:
#!/usr/bin/env bash
set -e # halt script on error
bundle exec jekyll build
看起来一切正常,没有错误
但在Github上,我得到:
故障排除没有帮助
以防万一。我正在运行jekyllassets
,无法直接使用gh页面构建它,因此travis,具体请参见:
我真的不知道如何处理,github错误没有任何帮助。如果您的站点已经由CI构建,您可以在代码的根目录下添加一个
.nojekyll
文件,以指示gh页面不要生成,而只是发布您的站点。我来试一试。谢谢嘿,这似乎部分解决了问题!!非常感谢。我仍然不确定它到底在做什么。我还看到了一个损坏的md文件:而不是生成的html。这似乎与我在根目录下有这个文件有关。我的意思是这个文件:你的CI应该发布生成的站点。_站点文件夹的内容,而不是主分支机构代码。