Merge pull request #649 from spicyj/nocommit-travis

Don't try to commit website on Travis if no changes
This commit is contained in:
Alexander Kotliarskyi 2015-04-03 10:04:49 -07:00
commit 4a73a31725
1 changed files with 6 additions and 3 deletions

View File

@ -23,7 +23,10 @@ node server/generate.js
cp -R build/react-native/* ../../react-native-gh-pages/
rm -Rf build/
cd ../../react-native-gh-pages
git add --all
git commit -m "update website"
git push
git status
if ! git diff-index --quiet HEAD --; then
git add -A .
git commit -m "update website"
git push origin gh-pages
fi
cd ../react-native/website