tag:help.appveyor.com,2012-11-13:/discussions/questions/45369-is-to-possible-to-clone-from-tagAppVeyor: Discussion 2020-04-03T18:47:04Ztag:help.appveyor.com,2012-11-13:Comment/479509322019-12-29T20:12:48Z2019-12-29T20:12:48ZIs to possible to clone from tag<div><p>Hi David,</p>
<p>Indeed, using builds API you can start a new build from a branch only. However, while calling API endpoint to start a new branch build you can pass an <a href="https://www.appveyor.com/docs/api/projects-builds/#start-build-of-branch-most-recent-commit">array of environment variables</a> that will be available on the VM during the build. So, you can pass the name of the tag you want to fetch, for example <code>MY_RELEASE_TAG: "v1.0"</code> and then during the build in <code>install</code> section, after repo is cloned, you can have something like:</p>
<pre>
<code>install:
- git fetch --tags
- git checkout tags/%MY_RELEASE_TAG%</code>
</pre>
<p>Thus you'll have a tag checked out in the current directory. Let me know how that worked.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/479509322019-12-30T19:49:31Z2019-12-30T19:49:31ZIs to possible to clone from tag<div><p>I realized that I really do want to make a release branch in this case.<br>
Thanks for your help. S Novim Godom!</p></div>davidtag:help.appveyor.com,2012-11-13:Comment/479509322019-12-31T01:18:38Z2019-12-31T01:18:38ZIs to possible to clone from tag<div><p>Thanks for the update and Happy New Year! :)</p></div>Feodor Fitsner