Update website on Travis when only new files are added (#8037)

This build didn't commit the new files because no existing files were changed:

https://travis-ci.org/facebook/react/jobs/169622664

This should work better.
This commit is contained in:
Ben Alpert 2016-10-22 13:41:29 -07:00 committed by Dan Abramov
parent 4812f26915
commit fa82e3e9d6
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ script:
bundle exec rake release
cd $GH_PAGES_DIR
git status
if ! git diff-index --quiet HEAD --; then
if test -n "$(git status --porcelain)"; then
git add -A .
git commit -m "Rebuild website"
git push origin gh-pages