maud/upload-docs
2015-01-14 17:33:24 +13:00

20 lines
291 B
Bash
Executable file

#!/bin/sh
set -e
base="$(dirname "$(readlink -f $0)")"
cd "$base/maud_macros"
cargo clean
cargo doc
cd target
git init
trap 'rm -rf .git/' 0
git add doc/
git commit -m 'Update documentation'
git remote add origin git@github.com:lfairy/maud.git
git push --force origin master:gh-pages