Fix ghp-import

This commit is contained in:
Remi Rampin 2017-04-07 12:02:07 -04:00
parent d91fb23b16
commit b793f72732
1 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ script: nikola build
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
virtualenv -p python2.7 /tmp/venv &&
. /tmp/venv/bin/activate &&
pip install ghp-import &&
ghp-import -n output
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
ghp-import -n output &&
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages >/dev/null 2>&1