Skip to content

Commit

Permalink
add rake release
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Apr 4, 2010
1 parent 08e1c98 commit 50dffb4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Expand Up @@ -47,7 +47,14 @@ Rake::RDocTask.new do |rdoc|
end

if defined?(Gem)
task 'build' do
task :release => :build do
sh "git commit --allow-empty -a -m 'up to #{source_version}'"
sh "git tag v#{source_version}"
sh "git push origin master"
sh "gem push pkg/god-#{source_version}.gem"
end

task :build => 'god.gemspec' do
sh 'mkdir -p pkg'
sh 'gem build god.gemspec'
sh 'mv *.gem pkg'
Expand Down

0 comments on commit 50dffb4

Please sign in to comment.