Skip to content
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

[v4.2] Redefine the release task skipping tag creation #5417

Merged
merged 1 commit into from
Oct 4, 2023
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
13 changes: 7 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,22 @@ 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}" }
end
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

Expand Down