Skip to content

Commit

Permalink
Simplify rake release task
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Jul 5, 2023
1 parent b187b6a commit c98ed19
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,9 @@ end

desc 'Bumpup minor version and release'
task 'release' do
version = Rf::VERSION.split('.')
version[1].succ! # increment minor version
File.write('mrblib/rf/version.rb', <<~VERSION)
module Rf
VERSION = '#{version.join('.')}'
end
VERSION
sh 'git add mrblib/rf/version.rb'
sh "git commit -m '#{version.join('.')}'"
sh "git tag v#{version.join('.')}"
sh "git push origin v#{version.join('.')}"
version = Rf::VERSION
sh "git tag v#{version}"
sh "git push origin v#{version}"
end

desc 'Run RSpec with parallel_rspec'
Expand Down

0 comments on commit c98ed19

Please sign in to comment.