buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1448576 - /buildr/trunk/rakelib/release.rake
Date Thu, 21 Feb 2013 11:02:39 GMT
Author: donaldp
Date: Thu Feb 21 11:02:38 2013
New Revision: 1448576

URL: http://svn.apache.org/r1448576
Log:
Update the release process to publish the site to subversion

Modified:
    buildr/trunk/rakelib/release.rake

Modified: buildr/trunk/rakelib/release.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/release.rake?rev=1448576&r1=1448575&r2=1448576&view=diff
==============================================================================
--- buildr/trunk/rakelib/release.rake (original)
+++ buildr/trunk/rakelib/release.rake Thu Feb 21 11:02:38 2013
@@ -14,7 +14,7 @@
 # the License.
 
 desc "Release the next version of buildr from existing staged repository"
-task 'release' do
+task 'release' => %w{setup-local-site-svn} do
   # First, we need to get all the staged files from Apache to _release.
   mkpath '_release'
   lambda do
@@ -35,10 +35,9 @@ task 'release' do
     sh 'ssh', 'people.apache.org', 'chmod', '-f', '-R', 'g+w', "#{remote_dir}/*"
     puts '[X] Uploaded packages to www.apache.org/dist'
 
-    target = "people.apache.org:/www/#{spec.name}.apache.org/"
     puts "Uploading new site to #{spec.name}.apache.org ..."
-    sh 'rsync', '--progress', '--recursive', '--delete', "_release/#{spec.version}/site/",
target
-    sh 'ssh', 'people.apache.org', 'chmod', '-f', '-R', 'g+w', "/www/#{spec.name}.apache.org/*"
+    sh 'rsync', '--progress', '--recursive', '--delete', "_release/#{spec.version}/site/",
'site'
+    task('publish-site-svn').invoke
     puts "[X] Uploaded new site to #{spec.name}.apache.org"
   end.call
 



Mime
View raw message