rm -rf .gh-pages
mkdir .gh-pages
cd .gh-pages
git init
cp -r ../target/doc/* .
cp ../circle.yml ./
if [ ${CIRCLECI} ]
then
git config user.name "Joe Wilm"
git config user.email "joe@jwilm.com"
fi
git checkout -b gh-pages
echo "chatbot.rs" > CNAME
git add -f --all .
git commit -m "Documentation"
git remote add origin https://github.com/jwilm/chatbot.git
git push -qf origin gh-pages
cd ..
rm -rf .gh-pages