tag:help.appveyor.com,2012-11-13:/discussions/questions/1433-how-to-push-packages-to-nuget-when-i-push-a-tagAppVeyor: Discussion 2018-10-19T08:17:17Ztag:help.appveyor.com,2012-11-13:Comment/372711952015-07-01T13:23:50Z2015-07-01T13:23:51ZHow to push packages to nuget when I push a tag?<div><p>I've seen the github-releases deployment provider is capable of
deploying on a tag.</p>
<p>I'd love to be able to have the nuget provider do that too
(especially if I still get to have conditional deployment as
branches support now - I'd like to only deploy on particular
patterns of tags).</p>
<p>I'd love for my release process to be:<br>
```shell git tag -a v1.2.3 -m "Release v1.2.3"<br>
git push --tags upstream</p>
<h1><a name="appveyor-takes-over" href="#appveyor-takes-over" class="anchor"></a>appveyor takes over</h1>
<pre>
<code>
I think the closest I can come to this right now is creating a v1.2.3 branch, which is not ideal because it's mutable.</code>
</pre></div>Peter Mouncetag:help.appveyor.com,2012-11-13:Comment/372711952015-07-01T20:41:57Z2015-07-01T20:41:57ZHow to push packages to nuget when I push a tag?<div><p>You can set NuGet provider to deploy on tag build:</p>
<pre>
<code># publish NuGet package on tag build
deploy:
- provider: NuGet
api_key:
secure: <your-secured-api-key>
on:
appveor_repo_tag: true</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372711952015-07-03T09:52:07Z2015-07-03T09:52:07ZHow to push packages to nuget when I push a tag?<div><p>Thank you, that's exactly what I wanted!</p>
<p>I was confused by the note in github-releases deployment
provider doc about<br>
that being the only one that could deploy from a tag.</p>
<h2><a name="peter-mounce-senior-engineer-" href="#peter-mounce-senior-engineer-" class="anchor"></a>Peter Mounce Senior
Engineer</h2>
<p>Fleet Place House, 2 Fleet Place, London EC4M 7RF<br>
WEB tech.just-eat.com</p>
<h2><a name="twitter-petemounce-" href="#twitter-petemounce-" class="anchor"></a>TWITTER @petemounce</h2>
<p><em>Pete found a takeaway on JUST EAT that sells lobster
#minifistpump</em></p></div>Peter Mounce