rust-postgres/.travis/update_docs.sh
2015-05-16 15:01:24 -07:00

17 lines
352 B
Bash
Executable File

#!/bin/bash
set -o errexit -o nounset
git clone --branch gh-pages "https://$GH_TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs
cd deploy_docs
git config user.name "Steven Fackler"
git config user.email "sfackler@gmail.com"
rm -rf doc/master
mv ../target/doc doc/master
git add -A .
git commit -m "rebuild pages at ${TRAVIS_COMMIT}"
git push