]> git.proxmox.com Git - rustc.git/blame - src/doc/embedded-book/ci/after-success.sh
New upstream version 1.51.0+dfsg1
[rustc.git] / src / doc / embedded-book / ci / after-success.sh
CommitLineData
9fa01778
XL
1set -euxo pipefail
2
3main() {
4 mkdir ghp-import
5 curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |
6 tar --strip-components 1 -C ghp-import -xz
7
8 ./ghp-import/ghp_import.py book
9
10 # NOTE(+x) don't print $GH_TOKEN to the console!
11 set +x
12 git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && echo OK
13}
14
15if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]; then
16 main
17fi