Guest User

Untitled

a guest
May 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. task :release do
  2. temp = "../temp"
  3. puts `git clone -l -s -b gh-pages . #{temp}`
  4. if system("mvn release:perform")
  5. puts `cd #{temp} && git add -A && git commit -m "releasing artifacts" && git push origin gh-pages`
  6. puts `git push origin gh-pages`
  7. puts " artifact released successfully "
  8. else
  9. puts " could not release artifact "
  10. end
  11. puts `rm -r #{temp}`
  12. end
Add Comment
Please, Sign In to add comment