#!/bin/bash PRIVATE_KEY="cfg/id_rsa" chmod 600 "${PRIVATE_KEY}" eval `ssh-agent -s` ssh-add "${PRIVATE_KEY}" mkdir ~/.ssh chmod 700 ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts git config user.name "Travis CI Publisher" git remote add docu "git@github.com:$TRAVIS_REPO_SLUG.git"; git fetch docu gh-pages:gh-pages echo "Pushing to gh-pages of repository $TRAVIS_REPO_SLUG" cd documentation mkdocs gh-deploy -v --clean --remote-name docu