@@ -260,26 +260,31 @@ jobs:
260260 ArtifactName : deployables
261261 ArtifactType : Container
262262
263- # push NuGet packages to NuGet (happens on all builds except PRs)
264- - task : DotNetCoreCLI@2
263+ # push NuGet class lib package to NuGet (happens on all builds except PRs)
264+ - task : NuGetCommand@2
265265 condition : and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
266- displayName : Push NuGet nanoff package to NuGet
266+ displayName : Push nanoff NuGet package to NuGet
267+ continueOnError : true
267268 inputs :
268- command : custom
269- custom : nuget
270- arguments : push $(Build.ArtifactStagingDirectory)/nanoff.$(NBGV_NuGetPackageVersion).nupkg --source https://api.nuget.org/v3/index.json --api-key $(API_KEY) --skip-duplicate --timeout 600
271- env :
272- API_KEY : $(NuGetToken)
273-
274- - task : DotNetCoreCLI@2
269+ command : push
270+ feedsToUse : select
271+ nuGetFeedType : external
272+ allowPackageConflicts : true
273+ packagesToPush : ' $(Build.ArtifactStagingDirectory)\nanoff.$(NBGV_NuGetPackageVersion).nupkg'
274+ publishFeedCredentials : ' NuGet-nanoFirmwareFlasher'
275+
276+ # push NuGet class lib package to NuGet (happens on all builds except PRs)
277+ - task : NuGetCommand@2
275278 condition : and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
276- displayName : Push NuGet packages to NuGet
279+ displayName : Push library NuGet package to NuGet
280+ continueOnError : true
277281 inputs :
278- command : custom
279- custom : nuget
280- arguments : push $(Build.ArtifactStagingDirectory)/nanoFramework.Tools.FirmwareFlasher.$(NBGV_NuGetPackageVersion).nupkg --source https://api.nuget.org/v3/index.json --api-key $(API_KEY) --skip-duplicate --timeout 600
281- env :
282- API_KEY : $(NuGetToken)
282+ command : push
283+ feedsToUse : select
284+ nuGetFeedType : external
285+ allowPackageConflicts : true
286+ packagesToPush : ' $(Build.ArtifactStagingDirectory)\nanoFramework.Tools.FirmwareFlasher.$(NBGV_NuGetPackageVersion).nupkg'
287+ publishFeedCredentials : ' NuGet-nanoFirmwareFlasher'
283288
284289 # create or update GitHub release
285290 - task : GithubRelease@1
0 commit comments