Initial commit
Much of the content here is a direct port from https://github.com/japaric/discovery
This commit is contained in:
19
ci/after-success.sh
Normal file
19
ci/after-success.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
set -euxo pipefail
|
||||
|
||||
main() {
|
||||
mdbook build
|
||||
|
||||
mkdir ghp-import
|
||||
|
||||
curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |
|
||||
tar --strip-components 1 -C ghp-import -xz
|
||||
|
||||
./ghp-import/ghp_import.py book
|
||||
|
||||
set +x
|
||||
git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && echo OK
|
||||
}
|
||||
|
||||
if [ $TRAVIS_BRANCH = master ]; then
|
||||
main
|
||||
fi
|
||||
Reference in New Issue
Block a user