File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -76,28 +76,27 @@ steps:
76
76
SourceFolder : ' $(Build.SourcesDirectory)/Artifacts'
77
77
Contents : |
78
78
**/*.nupkg
79
- **/*.symbols.nupkg
79
+ **/*.snupkg
80
80
TargetFolder : ' $(Build.ArtifactStagingDirectory)'
81
81
flattenFolders : true
82
82
preserveTimestamp : true
83
83
retryCount : ' 3'
84
84
ignoreMakeDirErrors : true
85
85
86
+ - task : Bash@3
87
+ displayName : ' Push to nuget.org'
88
+ env :
89
+ NUGET_ORG_APIKEY : ' $(NUGET_ORG_APIKEY)'
90
+ inputs :
91
+ targetType : ' inline'
92
+ script : ' dotnet nuget push "*.nupkg" --skip-duplicate --api-key $(NUGET_ORG_APIKEY) --source https://api.nuget.org/v3/index.json'
93
+ workingDirectory : ' $(Build.ArtifactStagingDirectory)'
94
+
86
95
- task : NuGetCommand@2
87
96
displayName : Push to internal NuGet feed
88
97
inputs :
89
98
command : ' push'
90
- packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg '
99
+ packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg'
91
100
nuGetFeedType : ' internal'
92
101
publishVstsFeed : ' fee4c64f-3e49-4618-9ea4-5a3167257c37/989275f4-a952-4abd-ae82-2e7a0cb97b9b'
93
102
allowPackageConflicts : true
94
-
95
- - task : NuGetCommand@2
96
- displayName : Push to nuget.org
97
- continueOnError : true # allowPackageConflicts option does not work with external feeds 🤷
98
- inputs :
99
- command : ' push'
100
- packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/'
101
- nuGetFeedType : ' external'
102
- publishFeedCredentials : ' nuget.org (UnitsNet)'
103
- allowPackageConflicts : true
You can’t perform that action at this time.
0 commit comments