smithay/doc_upload.sh

12 lines
371 B
Bash
Raw Normal View History

2017-09-28 17:35:22 +00:00
#!/bin/sh
repo="$TRAVIS_REPO_SLUG"
token="$GH_TOKEN"
commit=$(git rev-parse --short HEAD)
msg="Documentation for $repo@$commit"
git clone https://github.com/davisp/ghp-import
./ghp-import/ghp_import.py -n -m "$msg" target/doc
# pipe output to /dev/null to avoid printing our token in travis log
git push -fq "https://$token@github.com/$repo.git" "gh-pages" > /dev/null