Publishing nuget artifact only on git tags

giacomo.tag's Avatar


01 Jun, 2015 12:55 PM

Right now, With the following addition in my appveyor.yml file:

  - path: '*.nupkg'

I am able to push the produced nupkg in the project and account feed. I would like this to happen only when I push a new tag. I know that this is possible in the deployments with the usage of the appveyor_repo_tag: true option. Is it possible to use it with the automatic nupkg push on appveyor?

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Jun, 2015 04:25 PM

    Feodor Fitsner's Avatar

    There are two options here:

    • delete NuGet package from account feed (project feed is readonly) if it's not a tag build
    • use script and push artifact only if it's a tag build
  2. 2 Posted by giacomo.tag on 02 Jun, 2015 07:41 AM

    giacomo.tag's Avatar

    Is there any appveyor environment variable that can help me discern if it's a tag build or not?

  3. Support Staff 3 Posted by Feodor Fitsner on 02 Jun, 2015 05:29 PM

    Feodor Fitsner's Avatar
  4. 4 Posted by giacomo.tag on 03 Jun, 2015 07:23 AM

    giacomo.tag's Avatar

    thanks! didn't read that doc.

  5. giacomo.tag closed this discussion on 03 Jun, 2015 07:23 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac