Skip to content

Commit

Permalink
Update rakefile so automated releases work again
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel committed Jun 7, 2008
1 parent 5d30bed commit 54c3c4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rakefile
Expand Up @@ -111,7 +111,8 @@ namespace :dist do

desc 'Tag release'
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

desc 'Update changelog to include a release marker'
Expand All @@ -125,7 +126,8 @@ namespace :dist do
end

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

package_name = lambda {|specification| File.join('pkg', "#{specification.name}-#{specification.version}")}
Expand All @@ -151,8 +153,9 @@ namespace :dist do
begin
rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version, "#{package}.tar.gz", "#{package}.gem")
puts "Version #{spec.version} released!"
rescue
rescue Exception => exception
puts 'Release failed!'
raise
end
end

Expand Down

0 comments on commit 54c3c4d

Please sign in to comment.