Sha256: a0b6eabed31814fae5b7259b285b6be27a5927c13a523a0445b7bc1fa047577a
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
require 'rubygems' require 'rake' root = File.dirname __FILE__ task :default => :publish def system(cmd) puts ">> #{cmd}" super cmd end desc 'push to Github' task :publish do Dir.chdir(root) do Dir.chdir(root + '/public') do system 'git fetch --all' system 'git reset --hard origin/master' end system 'jekyll build' Dir.chdir(root + '/public') do system 'git ac -m Update' system 'git push' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynflow-0.7.7 | doc/pages/Rakefile |