Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task :site do
- temp = "../temp"
- puts `git clone -l -s -b gh-pages . #{temp}`
- if system("mvn site-deploy ")
- puts `cd #{temp} && git add -A && git commit -m "deploying site" && git push origin gh-pages`
- puts `git push origin gh-pages`
- puts " site deployed successfully "
- else
- puts " site could not be deployed "
- end
- puts `rm -r #{temp}`
- end
Add Comment
Please, Sign In to add comment