Skip to content

Commit

Permalink
better deploy pipeline for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Jun 17, 2016
1 parent 0c600c1 commit 0d0aee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ function deploy {
git push origin "$gem_version"

bundle exec rake yard
git subtree push --prefix doc origin gh-pages
git checkout gh-pages
ls -a | grep -v -E '^doc|^.$|^..$|^\.git' | xargs rm -r
cp -r doc/* . && rm -r doc && git add .
git commit -m "Updating docs for version $gem_version"
git push origin gh-pages
}

[[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]] && deploy
2 changes: 1 addition & 1 deletion lib/humidifier/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Humidifier
# Gem version
VERSION = '0.0.51'.freeze
VERSION = '0.0.52'.freeze
end

0 comments on commit 0d0aee5

Please sign in to comment.