Skip to content

Commit

Permalink
Make it possible to publish edge without base
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jun 7, 2024
1 parent 152b302 commit 28c1cb4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,24 @@ namespace :release do
task :publish => ['publish:ask', 'publish:tag', 'publish:rubygems', 'publish:post_steps']

namespace :publish do
publish_base = true
publish_edge = false
publish_base = nil
publish_edge = nil

task :ask do
begin
STDOUT.puts 'Do you want to publish anything now? (y/n)'
input = STDIN.gets.strip.downcase
end until %w(y n).include?(input)
exit 1 if input == 'n'

begin
STDOUT.puts 'Do you want to publish `concurrent-ruby`? (y/n)'
input = STDIN.gets.strip.downcase
end until %w(y n).include?(input)
publish_base = input == 'y'

begin
STDOUT.puts 'It will publish `concurrent-ruby`. Do you want to publish `concurrent-ruby-edge`? (y/n)'
STDOUT.puts 'Do you want to publish `concurrent-ruby-edge`? (y/n)'
input = STDIN.gets.strip.downcase
end until %w(y n).include?(input)
publish_edge = input == 'y'
Expand Down

0 comments on commit 28c1cb4

Please sign in to comment.