<mx:init verbose="no" mxroot="${moxie.dir}" />\r
\r
<!-- Set Ant project properties -->\r
+ <property name="release.tag" value="v${project.version}" />\r
<property name="release.name" value="gitblit-${project.version}"/>\r
<property name="distribution.zipfile" value="${release.name}.zip" />\r
<property name="distribution.tgzfile" value="${release.name}.tar.gz" />\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
-->\r
<target name="releaseBinaries" depends="prepare" description="Publish the Gitblit binaries to a GitHub release">\r
- <property name="project.tag" value="v${project.version}" />\r
\r
<ghReleaseDraft\r
- releaselog="${releaselog}"/>\r
+ releaselog="${releaselog}"\r
+ releasetag="${release.tag}"/>\r
\r
<echo>Uploading Gitblit ${project.version} binaries</echo>\r
\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
-->\r
<target name="publishRelease" depends="prepare" description="Publish the GitHub release draft" >\r
- <property name="project.tag" value="v${project.version}" />\r
\r
<echo>Publishing Gitblit ${project.version} release draft on GitHub</echo>\r
\r
releaseVersion="${project.version}"/>\r
<exec executable="bash" logError="true" >\r
<arg value="-c" />\r
- <arg value="${octokit} -q edit_release fzs gitblit ${ghrelease.id} tag_name='${project.tag}'"></arg>\r
+ <arg value="${octokit} -q edit_release fzs gitblit ${ghrelease.id} tag_name='${release.tag}'"></arg>\r
</exec>\r
<ghPublishReleaseDraft\r
releaseid="${ghrelease.id}"/>\r
-->\r
<macrodef name="ghReleaseDraft">\r
<attribute name="releaselog" />\r
+ <attribute name="releasetag" />\r
<sequential>\r
<echo>Creating release ${project.tag} draft on GitHub</echo>\r
<exec executable="bash" logError="true" failonerror="true" outputproperty="ghrelease.id">\r
<arg value="-c" />\r
- <arg value="${octokit} create_release fzs gitblit ${project.tag} name=${project.version} draft=true | cut -f2"></arg>\r
+ <arg value="${octokit} create_release fzs gitblit @{releasetag} name=${project.version} draft=true | cut -f2"></arg>\r
</exec>\r
<exec executable="bash" logError="true" failonerror="true" outputproperty="ghrelease.upldUrl">\r
<arg value="-c" />\r