Permalink
Browse files

phing upload-release (modified copy from master)

  • Loading branch information...
1 parent 039a372 commit 570744f6585d096705b796891347bba2608908d0 @chillu chillu committed Oct 16, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 build.xml
View
@@ -316,4 +316,27 @@ Options:
<echo msg="${changelogOutput}" />
</target>
+ <target name="upload-release"
+ description="Uploads archives previously created through 'ping archive' to a public webhost, and notifies a group of people of the new release. Requires working public key auth on the release destination.">
+ <if>
+ <not><isset property="version"/></not>
+ <then><input propertyName="version" defaultValue="x.y.z" promptChar=":">Please choose a version</input></then>
+ </if>
+
+ <property name="release_dest" value="qa-servers@homer:/sites/ssorg-v2/www/assets/releases/" />
+ <property name="release_url" value="http://silverstripe.org/assets/releases/" />
+ <property name="release_notify_list" value="all@silverstripe.com,everyone@silverstripe.com.au" />
+
+ <exec command="scp -P 2222 SilverStripe-v${version}.tar.gz ${release_dest}" checkreturn="true" logoutput="true" />
+
+ <mail from="reports@silverstripe.com" tolist="${release_notify_list}" subject="SilverStripe ${version} has been uploaded">A new SilverStripe release is ready, and although it hasn't been publicly announced yet, is available at the following locations:
+
+${release_url}SilverStripe-v${version}.tar.gz
+
+Thanks,
+Your friendly automated release script.
+ </mail>
+
+ </target>
+
</project>

0 comments on commit 570744f

Please sign in to comment.