Skip to content

Commit

Permalink
Merge pull request #184 from lspector/fix-deploys
Browse files Browse the repository at this point in the history
Don't deploy on PRs and pull commits before releasing
  • Loading branch information
saulshanabrook committed Dec 25, 2015
2 parents 4b459b9 + 8216d0e commit 96f8cda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/after_success.sh
Expand Up @@ -4,6 +4,9 @@ set -o nounset
set -o xtrace
set -o pipefail

# exit if not on master branch
[ $TRAVIS_BRANCH = master ]

AUTOMATED_AUTHOR_EMAIL=_@_._
AUTOMATED_AUTHOR_NAME=_

Expand All @@ -15,6 +18,8 @@ git config push.default simple
# dont output all of lein doc, because its overly long because it tries
# to run experiments
lein codox 2>&1 | head -n 100
git pull origin gh-pages
./scripts/deploy-docs.sh --verbose
git checkout master
git pull origin master
lein release

0 comments on commit 96f8cda

Please sign in to comment.