From c98ed198ba28a584e60776e66d1b41746b419f4e Mon Sep 17 00:00:00 2001 From: buty4649 Date: Wed, 5 Jul 2023 23:15:25 +0900 Subject: [PATCH] Simplify rake release task --- Rakefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Rakefile b/Rakefile index 38839f1..09c530f 100644 --- a/Rakefile +++ b/Rakefile @@ -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'