Skip to content

Commit

Permalink
Add release to build
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Jun 15, 2017
1 parent b09f4c4 commit 483655a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,26 @@
<delete dir="${basedir}/build/phar/_tmp"/>
</target>


<target name="release" description="Make a release based on latest tag">

<exec executable="bash" outputproperty="version">
<arg value="-c"/>
<arg value="${basedir}/build/phar/phpdox*.phar --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'"/>
</exec>

<exec executable="gpg">
<arg value="--local-user" />
<arg value="[email protected]" />
<arg value="--detach-sign" />
<arg value="--armor" />
<arg value="--output" />
<arg path="${basedir}/build/phar/phpdox-${version}.phar.asc" />
<arg path="${basedir}/build/phar/phpdox-${version}.phar" />
</exec>

</target>


<target name="build" depends="clean,phpab,phpunit"/>
</project>

0 comments on commit 483655a

Please sign in to comment.