It doesn't pick up on changes anyway, because GitHub's API takes time to return new data.
15 lines
No EOL
526 B
Ruby
Executable file
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!" |