From e537c19fa3a66ebe01a76e7adbe59d15897694dd Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 27 Aug 2026 14:26:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20build=20gem=20into=20pkg/=20=E2=80=94=20?= =?UTF-8?q?the=20release-gem=20await=20step=20expects=20bundler's=20pkg/*.?= =?UTF-8?q?gem=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 6f227eb..35a0ecf 100644 --- a/Rakefile +++ b/Rakefile @@ -1,12 +1,15 @@ # Minimal gem tasks for rubygems/release-gem, which runs `rake build` then -# `rake release`. Hand-rolled because bundler/gem_tasks' release task also +# `rake release`, then awaits propagation via `pkg/*.gem` — bundler's build +# convention. Hand-rolled because bundler/gem_tasks' release task also # creates and pushes a git tag, which conflicts with the existing v* tags # this repo cuts for the maps release artifacts. task :build do sh "gem build interscript-maps.gemspec" + mkdir_p "pkg" + mv Dir["interscript-maps-*.gem"].sort.last, "pkg/" end task release: :build do - gem_file = Dir["interscript-maps-*.gem"].sort.last + gem_file = Dir["pkg/interscript-maps-*.gem"].sort.last sh "gem push #{gem_file}" end