Я использую 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
Это полный журнал сборки .
Кажется, что всеразвертывание нормально, без ошибок.
Но на Github я получаю:
Устранение неполадок не помогает.
На всякий случай.Я использую jekyll-assets
, и я не могу собрать его с помощью gh-страниц напрямую, следовательно, travis, см. https://github.com/github/pages-gem/issues/189, в частности: https://github.com/github/pages-gem/issues/189#issuecomment-319070628
Я действительно не уверен, как обрабатыватьошибка github не поможет.