public
Created

  • Download Gist
gh-pages.rake
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.