Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make cod:gh_pages task use gh-pages as branch name
  • Loading branch information
ianwhite committed Feb 8, 2009
1 parent ebb7e8b commit afb2495
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Rakefile
Expand Up @@ -47,15 +47,17 @@ end

namespace :doc do
task :gh_pages => :doc do
`git branch -m gh-pages orig-gh-pages`
`mv doc doctmp`
`git checkout -b gh-pages-tmp origin/gh-pages`
`git checkout -b gh-pages origin/gh-pages`
`rm -rf doc`
`mv doctmp doc`
`git add doc`
`git commit -m "Update API docs"`
`git push origin gh-pages`
`git push`
`git checkout master`
`git branch -D gh-pages-tmp`
`git branch -D gh-pages`
`git branch -m orig-gh-pages gh-pages`
end
end

Expand Down

0 comments on commit afb2495

Please sign in to comment.