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
Родитель 6992c3284a 0dff168820
Коммит 4a73a31725
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -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