Disable automatic push of artifacts to the project nuget feed

Douglas Drinka's Avatar

Douglas Drinka

05 Sep, 2017 09:42 PM

I'm using a build matrix with configuration: Debug/Release. I'd like my Debug builds published to MyGet, and my Release builds published to AppVeyor's account feed. I can prevent Release builds flowing to MyGet by using "on: configuration: Debug" in the deploy section. But I can't find a way to prevent Debug builds from publishing to the AppVeyor feed.

This is mostly OK because I only have one concurrent build worker and Release builds happen after Debug builds, and it appears the Release packages overwrite the Debug packages with the same version number. But I'd like to clean it up and only make the Release builds go to the project feed.

I think I could add another deploy section and manually configure AppVeyor as the destination, but how can I turn off the automatic push functionality?

Thanks,
-doug

  1. 1 Posted by Ilya Finkelshte... on 06 Sep, 2017 01:42 AM

    Ilya Finkelshteyn's Avatar

    Hi Douglas,

    As long as artifact is nuget package, AppVeyor publish it to the project feed (account feed aggregates all project feed). We maybe need to think to have an option to disable this behavior selectively. But for now I think the only way is to do not publish nuget packages as an artifacts, so you need to do all nuget packaging with nuget pack command and all nuget publishing with nuget push command.

    Ilya.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:19 AM.

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

Keyboard shortcuts

Generic

? 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