1
0
forked from Mirror/wren

Make some tweaks to doc deploy script.

- Rename file to match other naming conventions.
- Simplify condition a little.
This commit is contained in:
Bob Nystrom
2018-07-13 08:02:37 -07:00
parent 91b4f53ee5
commit c120769977
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,23 @@
#!/bin/bash
set -e
make gh-pages
git clone https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} gh-pages-repo
cd gh-pages-repo
git checkout gh-pages
rm -rf *
cp -r ../build/gh-pages/* .
git status
ls
if ! $( git diff-index --quiet HEAD ) ; then
git config user.name "Travis CI"
git config user.email "$COMMIT_AUTHOR_EMAIL"
git add -A .
git commit -m "Deploy to GitHub Pages: ${SHA}"
git push
fi