From e1dce5f5d3300fbf718a20ab88a094018e9b4c86 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Wed, 4 Oct 2023 11:38:48 +0200 Subject: [PATCH] Redefine the release task skipping tag creation --- Rakefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index dd1cd7bf248..f352bc442ee 100644 --- a/Rakefile +++ b/Rakefile @@ -54,10 +54,9 @@ task :clean do end SOLIDUS_GEM_NAMES = %w[core api backend sample] -GEM_TASKS_NAME = %w[build install] -GEM_TASKS_NAME.each do |task_name| - desc "Run rake gem:#{task} for each Solidus gem" +%w[build install].each do |task_name| + desc "Run rake #{task} for each Solidus gem" task task_name do SOLIDUS_GEM_NAMES.each do |gem_name| cd(gem_name) { sh "rake #{task_name}" } @@ -65,10 +64,12 @@ GEM_TASKS_NAME.each do |task_name| end end -task :releasez do - require_relative 'core/lib/spree/core/version' +# We need to redefine release task to skip creating and pushing git tag +Rake::Task["release"].clear +desc "Build and push solidus gems to RubyGems" +task "release" => ["build", "release:guard_clean", "release:rubygem_push"] do SOLIDUS_GEM_NAMES.each do |gem_name| - sh "gem push #{gem_name}/pkg/solidus_#{gem_name}-#{Spree.solidus_version}.gem" + cd(gem_name) { sh "rake release:rubygem_push" } end end