Created
October 30, 2015 15:53
-
-
Save jeremyboggs/4662dac9f6ddc77ceb2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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