Rakefile in rubygems-update-2.1.3 vs Rakefile in rubygems-update-2.1.4
- old
+ new
@@ -124,10 +124,14 @@
end
desc "Upload release to rubyforge and gemcutter"
task :upload => %w[upload_to_gemcutter]
+on_master = `git branch --list master`.strip == '* master'
+
+Rake::Task['publish_docs'].clear unless on_master
+
directory '../guides.rubygems.org' do
sh 'git', 'clone',
'git@github.com:rubygems/guides.git',
'../guides.rubygems.org'
end
@@ -164,15 +168,17 @@
sh 'git', 'push'
end
end
desc 'Updates and publishes the guides for the just-released RubyGems'
+ task 'publish'
+
task 'publish' => %w[
guides:pull
guides:update
guides:commit
guides:push
- ]
+ ] if on_master
end
directory '../blog.rubygems.org' do
sh 'git', 'clone',
'git@github.com:rubygems/rubygems.github.com.git',