Browse files

add grancher task for publishing rdoc to github

  • Loading branch information...
1 parent 293284d commit cb0cde7a6c070112b5ab710049500f7045b3f179 Kanis-Küche committed May 9, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 Rakefile
View
12 Rakefile
@@ -4,6 +4,7 @@
require 'rubygems'
require 'hoe'
require 'rake/extensiontask'
+require 'grancher/task'
hoe = Hoe.spec 'pkcs11' do
developer('Ryosuke Kutsuna', 'ryosuke@deer-n-horse.jp')
@@ -23,4 +24,15 @@ Rake::ExtensionTask.new('pkcs11_ext', hoe.spec) do |ext|
ext.cross_platform = ['i386-mswin32', 'i386-mingw32'] # forces the Windows platform instead of the default one
end
+require 'grancher/task'
+Grancher::Task.new do |g|
+ g.branch = 'gh-pages' # alternatively, g.refspec = 'ghpages:/refs/heads/ghpages'
+ g.push_to = 'origin'
+# g.repo = 'some_repo' # defaults to '.'
+# g.message = 'Updated website' # defaults to 'Updated files.'
+
+ # Put the website-directory in the root
+ g.directory 'doc'
+end
+
# vim: syntax=ruby

0 comments on commit cb0cde7

Please sign in to comment.