maud/upload-docs
2017-01-28 23:04:17 +13:00

20 lines
363 B
Bash
Executable file

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