Skip to content

Commit

Permalink
phing upload-release (modified copy from master)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Oct 16, 2012
1 parent 039a372 commit 570744f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.