Skip to content

Commit

Permalink
Merge pull request #269 from silvolu/fix-docs-build
Browse files Browse the repository at this point in the history
fix(build): allow git add to fail if there aren't new docs
  • Loading branch information
stephenplusplus committed Oct 31, 2014
2 parents 5cf6ff3 + 2ffcc3b commit ecd25f2
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 ecd25f2

Please sign in to comment.