File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- desc "create a new release"
1
+ desc "Create a new release. "
2
2
task 'release' do
3
3
current_version = run ( 'git tag' ) . split ( /\n / ) . last . strip [ 1 ..-1 ]
4
4
print "What version do you want to release? (current: #{ current_version } ): "
@@ -9,11 +9,15 @@ task 'release' do
9
9
raise ( "This tag has already been committed to the repo." )
10
10
end
11
11
12
+ run "./release.py v#{ current_version } HEAD -t #{ version_tag } -f CHANGELOG.md"
13
+
12
14
elixir_mode_contents = File . read ( 'elixir-mode.el' )
13
15
File . write ( 'elixir-mode.el' , update_version ( elixir_mode_contents , current_version , version ) )
16
+ git_changes ( version , version_tag )
17
+ end
14
18
19
+ def git_changes ( version , version_tag )
15
20
run "git commit -a -m \" prepare #{ version } \" "
16
-
17
21
run "git tag -a -m \" Version #{ version } \" #{ version_tag } "
18
22
run "git push origin"
19
23
run "git push origin --tags"
You can’t perform that action at this time.
0 commit comments