From 3715c5d33b037cc00a83ae6da8833aa04a38142d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 22 Aug 2016 12:46:08 +0200 Subject: [PATCH] Add deploy setup for gh-pages --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d58de10b..fb0323ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,8 +68,15 @@ addons: - libcurl4-openssl-dev - libelf-dev - libdw-dev -after_success: -- travis-cargo --only stable doc-upload +after_success: | + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + cd .imag-documentation && + cargo doc && + echo "" > target/doc/index.html && + sudo pip install ghp-import && + ghp-import -n target/doc && + git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages notifications: email: on_success: never