【发布时间】:2018-11-07 17:02:48
【问题描述】:
我正在使用 travis CI 发布我的 jekyll 网站。
相关部分是:
.travis.yml
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
This is the full log of the build.
一切似乎部署正常,没有错误。
但在 Github 上我得到:
故障排除无济于事。
以防万一。我正在运行jekyll-assets,我不能直接使用 gh-pages 构建它,因此 travis,请参见 https://github.com/github/pages-gem/issues/189:https://github.com/github/pages-gem/issues/189#issuecomment-319070628
实在不知道怎么处理,github的错误也无济于事。
【问题讨论】:
标签: github jekyll travis-ci github-pages