Skip to content

Commit

Permalink
Don't deploy on PRs and pull commits before releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Dec 25, 2015
1 parent e032bf7 commit 8216d0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,9 @@ 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 checkout gh-page
git pull origin gh-pages
./scripts/deploy-docs.sh --verbose
git checkout master
git pull origin master
lein release

0 comments on commit 8216d0e

Please sign in to comment.