mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add git branch to phing build.
This commit is contained in:
parent
a9c279aab0
commit
19292a012b
1 changed files with 4 additions and 1 deletions
|
@ -84,6 +84,9 @@
|
||||||
<property name="pear.package" value="${project.name}-${pear.version}" />
|
<property name="pear.package" value="${project.name}-${pear.version}" />
|
||||||
|
|
||||||
<echo msg="Preparing package of ${version} (${pear.version}+${pear.stability})" />
|
<echo msg="Preparing package of ${version} (${pear.version}+${pear.stability})" />
|
||||||
|
|
||||||
|
<!-- Get the current git branch -->
|
||||||
|
<exec command="git name-rev HEAD 2>/dev/null | awk '{ print $2 }'" outputProperty="git.branch" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -180,7 +183,7 @@
|
||||||
<fail if="noshipit" msg="You said not to ship it." />
|
<fail if="noshipit" msg="You said not to ship it." />
|
||||||
|
|
||||||
<echo msg="Pushing commit and tag." />
|
<echo msg="Pushing commit and tag." />
|
||||||
<exec command="git push ${git.remote}" logoutput="true" checkreturn="true" />
|
<exec command="git push ${git.remote} ${git.branch}" logoutput="true" checkreturn="true" />
|
||||||
<exec command="git push ${git.remote} ${release_version}" logoutput="true" checkreturn="true" />
|
<exec command="git push ${git.remote} ${release_version}" logoutput="true" checkreturn="true" />
|
||||||
<echo msg="Push complete." />
|
<echo msg="Push complete." />
|
||||||
</target>
|
</target>
|
||||||
|
|
Loading…
Reference in a new issue