Skip to content

Commit b0fb39c

Browse files
Add release script
1 parent 006bc38 commit b0fb39c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

script/release

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env ruby
2+
3+
puts "What version number do you want to release?"
4+
print "> "
5+
version = gets.gsub(/\n/, "")
6+
7+
continue = system "github_changelog_generator"
8+
continue = system "keybase dir sign" if continue
9+
continue = system "git add ."
10+
continue = system "git commit -am \"Release version #{version}\"" if continue
11+
continue = system "git tag v#{version}" if continue
12+
continue = system "git push" if continue
13+
continue = system "git push -f origin v#{version}" if continue
14+
continue = system "mix hex.publish" if continue
15+
continue = system "mix hex.docs" if continue
16+
17+
puts "Version #{version} was successfully released!"
18+

0 commit comments

Comments
 (0)