Sha256: e3a17dbaf69cfc38d61adb1958105bf34489633d5eeab33e0ff5d5982979d962
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dynflow-1.9.0 | doc/pages/Rakefile |
dynflow-1.8.3 | doc/pages/Rakefile |