Skip to content

Commit

Permalink
fix(build): allow git add to fail if there aren't new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
silvolu committed Oct 30, 2014
1 parent dcae4b7 commit 2ffcc3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]
cd docs
cp -R `ls --ignore 'versions.txt'` ../ghpages/
cd ../ghpages
# allow "git add" to fail if there aren't new files.
set +e
git add .
set -e
# commit to gh-pages branch to apply changes
git config user.name "selfiebot"
git commit -m "Update docs after merge to master"
Expand Down

0 comments on commit 2ffcc3b

Please sign in to comment.