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/
|
cp -R build/react-native/* ../../react-native-gh-pages/
|
||||||
rm -Rf build/
|
rm -Rf build/
|
||||||
cd ../../react-native-gh-pages
|
cd ../../react-native-gh-pages
|
||||||
git add --all
|
git status
|
||||||
|
if ! git diff-index --quiet HEAD --; then
|
||||||
|
git add -A .
|
||||||
git commit -m "update website"
|
git commit -m "update website"
|
||||||
git push
|
git push origin gh-pages
|
||||||
|
fi
|
||||||
cd ../react-native/website
|
cd ../react-native/website
|
||||||
|
|
Loading…
Reference in New Issue