Skip to content

Commit 51e62a9

Browse files
author
Muhammad Rehan Saeed
committed
Use nuget push instead of NuGetCommand
1 parent 8c260f6 commit 51e62a9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ stages:
8686
runOnce:
8787
deploy:
8888
steps:
89-
- task: NuGetCommand@2
89+
- task: NuGetToolInstaller@1
90+
displayName: 'Install NuGet'
91+
- script: nuget push $(Agent.BuildDirectory)/Windows/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $(NuGetApiKey) -SkipDuplicate
9092
displayName: 'NuGet Push'
91-
inputs:
92-
command: push
93-
nuGetFeedType: external
94-
packagesToPush: '$(Agent.BuildDirectory)/Windows/*.nupkg'
95-
publishFeedCredentials: NuGet
96-
allowPackageConflicts: true
93+
failOnStderr: true

0 commit comments

Comments
 (0)