From 752fcac2925345bba4fca4dd6149137a4391ff4a Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 27 Aug 2026 14:22:51 +0800 Subject: [PATCH] fix: Rakefile with build/release tasks for the release-gem action Hand-rolled rather than bundler/gem_tasks because bundler's release task creates and pushes a git tag; this repo's v* tags are cut by the maps artifact release flow and v2.5.0 already exists. --- Rakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..6f227eb --- /dev/null +++ b/Rakefile @@ -0,0 +1,12 @@ +# Minimal gem tasks for rubygems/release-gem, which runs `rake build` then +# `rake release`. 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" +end + +task release: :build do + gem_file = Dir["interscript-maps-*.gem"].sort.last + sh "gem push #{gem_file}" +end