Merge pull request #649 from spicyj/nocommit-travis
Don't try to commit website on Travis if no changes
This commit is contained in:
commit
4a73a31725
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue