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.
Ben Alpert committed
Oct 22, 2016 at 13:41 UTC
fa82e3e9d6d6f32785c6161365dc7716aa227c65
1 file changed
+1
-1
.travis.yml
+1
-1
@@ -39,7 +39,7 @@ script:
39
bundle exec rake release
40
cd $GH_PAGES_DIR
41
git status
42
- if ! git diff-index --quiet HEAD --; then
42
+ if test -n "$(git status --porcelain)"; then
43
git add -A .
44
git commit -m "Rebuild website"
45
git push origin gh-pages