mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Add release task.
This commit is contained in:
parent
be53ce7705
commit
d3ef930115
1 changed files with 12 additions and 0 deletions
12
Rakefile
12
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue