Created
March 28, 2011 20:04
-
-
Save ashaw/891157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "generate gh-pages" | |
task :gh_pages do | |
`rake docs` | |
`git branch` =~ /^\* (.+)?\n/ | |
current_branch = $1 | |
`git commit -am "docs"` | |
`git checkout gh-pages` | |
`git merge #{current_branch}` | |
`git push github gh-pages` | |
`git checkout #{current_branch}` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment