Skip to content

Commit 32fc03f

Browse files
Removes pattern for symbols package from Nuget publish steps (#1414) (#1415)
Cheery picking changes from : #1414 ## Why make this change? The Nuget push command publishes both the primary Nuget and symbols package just for the pattern `*.nupkg`. When the pattern for symbols package `*.snupkg` is added, it tries to push the symbols package again which fails as Nuget.org considers this a duplicate package. ## What is this change? Removing the pattern for symbols package from the publish tasks Co-authored-by: Shyam Sundar J <shyamsundarj@microsoft.com>
1 parent 893f503 commit 32fc03f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pipelines/build-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ steps:
211211
inputs:
212212
command: 'push'
213213
feedsToUse: 'select'
214-
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;$(Build.ArtifactStagingDirectory)/**/*.snupkg'
214+
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
215215
nuGetFeedType: 'internal'
216216
publishVstsFeed: CosmosDB/DataApiBuilder
217217
versioningScheme: 'off'
@@ -222,7 +222,7 @@ steps:
222222
condition: and(succeeded(), eq(variables.isReleaseBuild, 'true'))
223223
inputs:
224224
command: push
225-
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;$(Build.ArtifactStagingDirectory)/**/*.snupkg'
225+
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
226226
nuGetFeedType: external
227227
publishFeedCredentials: Microsoft.DataApiBuilder
228228

0 commit comments

Comments
 (0)