1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Add release task.

This commit is contained in:
Konstantin Haase 2010-10-23 10:02:14 +02:00
parent be53ce7705
commit d3ef930115

View file

@ -124,4 +124,16 @@ if defined?(Gem)
File.open(f.name, 'w') { |io| io.write(spec) }
puts "updated #{f.name}"
end
task 'release' => package('.gem') do
sh <<-SH
gem install #{package('.gem')} --local &&
gem push #{package('.gem')} &&
git add sinatra.gemspec &&
git commit --allow-empty -m 'Release #{source_version}' &&
git tag -s #{source_version} -m 'Release #{source_version}' &&
git push && (git push sinatra || true) &&
git push --tags && (git push sinatra --tags || true)
SH
end
end