Sha256: f690bb7e4c9fcb07bde84bbb3cd7dffd6b77a8fe477b4a42954e83794673448e
Contents?: true
Size: 487 Bytes
Versions: 59
Compression:
Stored size: 487 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 sh 'jekyll build' Dir.chdir(root + '/public') do system 'git add -A .' system 'git commit -m Update' system 'git push' end end end
Version data entries
59 entries across 59 versions & 1 rubygems