Skip to content

Commit

Permalink
Removes pattern for symbols package from Nuget publish steps (#1414) (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
ayush3797 and severussundar authored Apr 5, 2023
1 parent 893f503 commit 32fc03f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pipelines/build-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ steps:
inputs:
command: 'push'
feedsToUse: 'select'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;$(Build.ArtifactStagingDirectory)/**/*.snupkg'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: CosmosDB/DataApiBuilder
versioningScheme: 'off'
Expand All @@ -222,7 +222,7 @@ steps:
condition: and(succeeded(), eq(variables.isReleaseBuild, 'true'))
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;$(Build.ArtifactStagingDirectory)/**/*.snupkg'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: Microsoft.DataApiBuilder

Expand Down

0 comments on commit 32fc03f

Please sign in to comment.