mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
24 lines
406 B
Bash
24 lines
406 B
Bash
|
|
#!/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
|