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