mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
Don't try to commit website on Travis if no changes
This was causing the build to fail if the website hadn't changed, because `git commit` would exit 1. This matches what we do on React now.
This commit is contained in:
parent
2c13456f99
commit
0dff168820
@ -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…
x
Reference in New Issue
Block a user