Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created October 30, 2015 15:53
Show Gist options
  • Save jeremyboggs/4662dac9f6ddc77ceb2d to your computer and use it in GitHub Desktop.
Save jeremyboggs/4662dac9f6ddc77ceb2d to your computer and use it in GitHub Desktop.
desc "Deploy it"
task :deploy, [:msg] => :build do |t, args|
msg = args[:msg] || 'Updates site.'
sh 'git clone -b gh-pages [email protected]:clioweb/clioweb.org.git ~/tmp/clioweb-gh-pages'
sh 'cp -r ~/tmp/clioweb-gh-pages/.git _site/.git'
sh "cd _site/ && git add . && git commit -am '#{msg}' && git push origin gh-pages"
cleanup
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment