tag:help.appveyor.com,2012-11-13:/discussions/questions/1635-github-deploy-with-condition-branch-masterAppVeyor: Discussion 2018-10-19T08:17:26Ztag:help.appveyor.com,2012-11-13:Comment/378399492015-09-03T19:35:27Z2015-09-03T19:35:27ZGitHub deploy with condition "branch: master"<div><p>In: <a href="http://www.appveyor.com/docs/deployment/github">http://www.appveyor.com/docs/deployment/github</a><br>
It is written:<br>
" on:<br>
branch: master appveyor_repo_tag: true "</p>
<p>But it seems that the branch condition expect that the branch is
equal to the current tag. Otherwise an error is raised (Skip
"GitHub" deployment as no branches matched (build branch is
"v1.1.26", deploy on branches "master")</p>
<p>This might be possible if a branch is built based on a tag, but
otherwise, it is fairly rare, and never happens without
branching.</p>
<p>Anyway, I might have missed another point of course.<br>
I had to remove "branch: master" to make the deployment work.</p></div>gilles.degottextag:help.appveyor.com,2012-11-13:Comment/378399492015-09-03T20:54:39Z2015-09-03T20:54:39ZGitHub deploy with condition "branch: master"<div><p>You can also specify branch as regular expression, kind of:</p>
<pre>
<code>on:
branch: /v\d+\.\d+\.\d+/
...</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378399492015-09-03T20:57:06Z2015-09-03T20:57:06ZGitHub deploy with condition "branch: master"<div><p>Oh ! Great.<br>
I was trying $(appveyor_repo_tag_name) but is wasn't working.</p></div>gilles.degottex