From 03d5cbfd0de7467817aa6e299511cbc0f1da1d8c Mon Sep 17 00:00:00 2001 From: josesimoes Date: Wed, 12 Jun 2024 04:14:42 +0100 Subject: [PATCH] Work CI-CD - NuGet package publish is now done against nuget.org. - Remove private Azure feed from nuget.config. --- NuGet.Config | 1 - azure-pipelines.yml | 14 +++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/NuGet.Config b/NuGet.Config index ef0bacfd..b02a9811 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -2,6 +2,5 @@ - diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1295552c..6ff53b6e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -261,17 +261,21 @@ jobs: condition: succeeded() displayName: Set build number - # push NuGet packages to Azure Artifacts feed (always happens except on PR builds) + # push NuGet packages to NuGet (always happens except on PR builds) - task: NuGetCommand@2 - displayName: Push NuGet packages to Azure Artifacts - condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') ) + displayName: Push NuGet packages to NuGet + condition: >- + and( + succeeded(), + eq(variables['System.PullRequest.PullRequestId'], '') + ) continueOnError: true inputs: command: push nuGetFeedType: external - packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg' - publishFeedCredentials: 'AzureArtifacts' allowPackageConflicts: true + packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg' + publishFeedCredentials: 'NuGet-$(System.TeamProject)' # create or update GitHub release - task: GithubRelease@1