@@ -260,7 +260,18 @@ jobs:
260260 ArtifactName : deployables
261261 ArtifactType : Container
262262
263- # push NuGet class lib package to NuGet (happens on all builds except PRs)
263+ # push NuGet packages to NuGet (happens on all builds except PRs)
264+ - task : NuGetCommand@2
265+ condition : and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
266+ displayName : Push NuGet nanoff package to NuGet
267+ continueOnError : true
268+ inputs :
269+ command : push
270+ nuGetFeedType : external
271+ allowPackageConflicts : true
272+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/nanoff*.nupkg'
273+ publishFeedCredentials : ' NuGet-nanoFirmwareFlasher'
274+
264275 - task : NuGetCommand@2
265276 condition : and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
266277 displayName : Push NuGet packages to NuGet
@@ -269,7 +280,7 @@ jobs:
269280 command : push
270281 nuGetFeedType : external
271282 allowPackageConflicts : true
272- packagesToPush : ' $(Build.ArtifactStagingDirectory)/*.nupkg'
283+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/nanoFramework *.nupkg'
273284 publishFeedCredentials : ' NuGet-nanoFirmwareFlasher'
274285
275286 # create or update GitHub release
@@ -283,8 +294,6 @@ jobs:
283294 title : ' nano firmware flasher v$(MY_NUGET_VERSION)'
284295 releaseNotesSource : inline
285296 releaseNotesInline : ' add description here'
286- assets : ' $(Build.ArtifactStagingDirectory)/*.nupkg'
287- assetUploadMode : replace
288297 isPreRelease : true
289298 addChangeLog : false
290299
@@ -299,8 +308,6 @@ jobs:
299308 title : ' nano firmware flasher v$(MY_NUGET_VERSION)'
300309 releaseNotesSource : inline
301310 releaseNotesInline : ' add description here'
302- assets : ' $(Build.ArtifactStagingDirectory)/*.nupkg'
303- assetUploadMode : replace
304311 isPreRelease : false
305312 addChangeLog : false
306313 action : edit
0 commit comments