Skip to content
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
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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
Loading