Skip to content

Commit a9769fd

Browse files
committed
Work CI-CD
- Split nuget push tasks. - Github releases do not upload assets anymore. (these changes are related with the fact that the nuget packages got really big)
1 parent 6e0d6a5 commit a9769fd

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

azure-pipelines.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)