In this example a project’s <deploy> task
first checks that there are no outstanding commits. Then it checks
that the current git branch matches
“release/v.”–this may be meeting
some team or DevOps requirement. Only then does it deploy the
files.
<target name="deploy">
<git-check-outstanding-commits/>
<git-check-branch pattern="release/v*.*"/>
<deploy-files target="\\myfile.share\assets">
<fileset dir="build>
<include name="*.xml"/>
</fileset>
</deploy-files>
</target>