Skip to content

Instantly share code, notes, and snippets.

@ashaw ashaw/gh-pages.rake
Created Mar 28, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.