Skip to content

Commit

Permalink
Publish documentation to http://gofreerange.com/mocha/docs/
Browse files Browse the repository at this point in the history
  • Loading branch information
floehopper committed May 4, 2012
1 parent d01e89e commit f8c4808
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Expand Up @@ -116,9 +116,7 @@ task 'generate_docs' => ['clobber_yardoc', 'yardoc']

desc "Publish docs to Github (relies on running 'generate_docs' task and committing changes to master branch)"
task 'publish_docs' do
sha = `git ls-tree -d HEAD doc | awk '{print $3}'`.strip
commit = `echo "Publishing docs from master branch" | git commit-tree #{sha} -p refs/heads/gh-pages`.strip
`git update-ref refs/heads/gh-pages #{commit}`
`scp -r doc/* gofreerange.com:/home/freerange/docs/mocha && ssh gofreerange.com "sudo su - freerange -c 'sudo chmod -R g+w /home/freerange/docs/mocha'"`
end

task 'release' => 'default' do
Expand Down

0 comments on commit f8c4808

Please sign in to comment.