rustc-dev-guide/ci/github_pages.sh

10 lines
226 B
Bash

#!/bin/bash
set -ex
BOOK_DIR=book
# Only upload the built book to github pages if it's a commit to master
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false ]; then
mdbook build
ghp-import $BOOK_DIR
fi