Skip to content

Commit 39e0da3

Browse files
committed
Merge pull request #92 from elixir-lang/build-tools
Update Rakefile to also run the release.py script. Refs #88.
2 parents 26c17f2 + b9ad4db commit 39e0da3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Rakefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
desc "create a new release"
1+
desc "Create a new release."
22
task 'release' do
33
current_version = run('git tag').split(/\n/).last.strip[1..-1]
44
print "What version do you want to release? (current: #{current_version}): "
@@ -9,11 +9,15 @@ task 'release' do
99
raise("This tag has already been committed to the repo.")
1010
end
1111

12+
run "./release.py v#{current_version} HEAD -t #{version_tag} -f CHANGELOG.md"
13+
1214
elixir_mode_contents = File.read('elixir-mode.el')
1315
File.write('elixir-mode.el', update_version(elixir_mode_contents, current_version, version))
16+
git_changes(version, version_tag)
17+
end
1418

19+
def git_changes(version, version_tag)
1520
run "git commit -a -m \"prepare #{version}\""
16-
1721
run "git tag -a -m \"Version #{version}\" #{version_tag}"
1822
run "git push origin"
1923
run "git push origin --tags"

0 commit comments

Comments
 (0)