elasticsearch-elixir/bin/release
Daniel Berkompas 6096341d18 Stop generating changelog after release
It doesn't pick up on changes anyway, because GitHub's API takes time to
return new data.
2018-04-18 10:28:20 -07:00

15 lines
No EOL
526 B
Ruby
Executable file

#!/usr/bin/env ruby
puts "What version number do you want to release?"
print "> "
version = gets.gsub(/\n/, "")
continue = system "github_changelog_generator"
continue = system "git add ."
continue = system "git commit -am \"Release version #{version}\"" if continue
continue = system "git tag v#{version}" if continue
continue = system "git push" if continue
continue = system "git push -f origin v#{version}" if continue
continue = system "mix hex.publish" if continue
puts "Version #{version} was successfully released!"