Skip to content

Commit 3d5db73

Browse files
committed
Work CD-CI
- Fix pushing Client and Server packages to nuget on tag build. (It was not working because the task fails on repeated symbols package pushing and thus only the 1st one on the list gets through) - Remove unnecessary repeated calls to class lib publish template. ***NO_CI*** Signed-off-by: José Simões <jose.simoes@eclo.solutions>
1 parent c0aa2a0 commit 3d5db73

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

azure-pipelines.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,32 @@ steps:
6565

6666
- template: azure-pipelines-templates/class-lib-publish.yml@templates
6767

68-
# need to push individual packages to NuGet because (happens on tag builds for any branch)
68+
# need to push remaining packages to NuGet individually because the template above can only push one package (happens on tag builds for any branch)
6969
- task: NuGetCommand@2
7070
inputs:
7171
command: push
7272
nuGetFeedType: external
7373
allowPackageConflicts: true
7474
packagesToPush:
75-
$(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Client.nupkg
76-
$(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server.nupkg
75+
$(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server-$(MY_NUGET_VERSION).nupkg
7776
publishFeedCredentials: 'NuGet'
7877
includeSymbols: false
7978
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
8079
continueOnError: true
81-
displayName: Push remaining NuGet packages to NuGet
80+
displayName: Push "Client" variant NuGet package to NuGet
8281

83-
- template: azure-pipelines-templates/class-lib-publish.yml@templates
84-
85-
- template: azure-pipelines-templates/class-lib-publish.yml@templates
82+
- task: NuGetCommand@2
83+
inputs:
84+
command: push
85+
nuGetFeedType: external
86+
allowPackageConflicts: true
87+
packagesToPush:
88+
$(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server-$(MY_NUGET_VERSION).nupkg
89+
publishFeedCredentials: 'NuGet'
90+
includeSymbols: false
91+
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
92+
continueOnError: true
93+
displayName: Push "Server" variant NuGet package to NuGet
8694

8795
# create or update GitHub release
8896
- task: GitHubReleasePublish@1

0 commit comments

Comments
 (0)