Files
book/ci/deploy.sh
steveklabnik 0d3b58e509 fix up deploy
2017-03-03 11:46:07 -05:00

22 lines
429 B
Bash

#!/bin/bash
set -o errexit -o nounset
rev=$(git rev-parse --short HEAD)
cd second-edition/book
git init
git config user.name "Steve Klabnik"
git config user.email "steve@steveklabnik.com"
git remote add upstream "https://$GH_TOKEN@github.com/rust-lang/book.git"
git fetch upstream
git reset upstream/gh-pages
touch .
git add -A .
git commit -m "rebuild pages at ${rev}"
git push -q upstream HEAD:gh-pages > /dev/null 2>&1