How to only deploy to NuGet if all images pass?
I am currently using two images in my build:-
image:
- Visual Studio 2022
- Ubuntu
This works great. However, I want to restrict the deploy
event to only trigger on master
and if both images complete successfully. Currently both will try on success it is just that NuGet rejects the second one as it is a duplicate version. This is what I currently have:-
deploy:
- provider: NuGet
api_key:
secure: W/TxTO4Vm+ffwmerewCB2W2ZoNoX66DnORD0X2dwSoOTWk0m/mvnAayikC2U006s
on:
branch: master
How do I configure the build so that the NuGet package is only deployed if all images pass?
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
Support Staff 1 Posted by Feodor Fitsner on 26 Sep, 2022 04:29 PM
What do you mean by "all images pass", running some tests?
I think you need 3 jobs: 2 jobs running tests in parallel and 3rd one, depending on them, doing packaging/deployment: https://www.appveyor.com/docs/job-workflows/
Feodor Fitsner closed this discussion on 26 Nov, 2022 09:02 PM.