Skip to content

Update Rakefile to also run the release.py script. Refs #88. #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
desc "create a new release"
desc "Create a new release."
task 'release' do
current_version = run('git tag').split(/\n/).last.strip[1..-1]
print "What version do you want to release? (current: #{current_version}): "
Expand All @@ -9,11 +9,15 @@ task 'release' do
raise("This tag has already been committed to the repo.")
end

run "./release.py v#{current_version} HEAD -t #{version_tag} -f CHANGELOG.md"

elixir_mode_contents = File.read('elixir-mode.el')
File.write('elixir-mode.el', update_version(elixir_mode_contents, current_version, version))
git_changes(version, version_tag)
end

def git_changes(version, version_tag)
run "git commit -a -m \"prepare #{version}\""

run "git tag -a -m \"Version #{version}\" #{version_tag}"
run "git push origin"
run "git push origin --tags"
Expand Down