Update rakefile so automated releases work again

This commit is contained in:
Marcel Molina 2008-06-07 02:40:08 -05:00
Родитель 5d30bedff7
Коммит 54c3c4dd7c
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -111,7 +111,8 @@ namespace :dist do
desc 'Tag release' desc 'Tag release'
task :tag do task :tag do
sh %(git tag -a '#{spec.version}-release' -m 'Tagging #{spec.version} release' && git push --tags") sh %(git tag -a '#{spec.version}-release' -m 'Tagging #{spec.version} release')
sh 'git push --tags'
end end
desc 'Update changelog to include a release marker' desc 'Update changelog to include a release marker'
@ -125,7 +126,8 @@ namespace :dist do
end end
task :commit_changelog do task :commit_changelog do
sh %(git commit CHANGELOG -m "Bump changelog version marker for release" && git push) sh %(git commit CHANGELOG -m "Bump changelog version marker for release")
sh 'git push'
end end
package_name = lambda {|specification| File.join('pkg', "#{specification.name}-#{specification.version}")} package_name = lambda {|specification| File.join('pkg', "#{specification.name}-#{specification.version}")}
@ -151,8 +153,9 @@ namespace :dist do
begin begin
rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version, "#{package}.tar.gz", "#{package}.gem") rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version, "#{package}.tar.gz", "#{package}.gem")
puts "Version #{spec.version} released!" puts "Version #{spec.version} released!"
rescue rescue Exception => exception
puts 'Release failed!' puts 'Release failed!'
raise
end end
end end