1 2 3 4 5 6 7 8 9 10 11
set -e cargo doc --no-deps FROM=$(git rev-parse --short HEAD) git checkout gh-pages git fetch && git rebase origin/gh-pages rsync -a target/doc/ . git add . git commit -m "Update doc for ${FROM}" # git push git checkout master