From ca6e7efc304e8d003333d74dd04293fef3d7922a Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Thu, 31 Oct 2024 14:26:21 -0400 Subject: [PATCH 1/2] add publish to nuget --- Pipelines/recursive-extractor-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Pipelines/recursive-extractor-release.yml b/Pipelines/recursive-extractor-release.yml index a7852f1..e87ffb5 100644 --- a/Pipelines/recursive-extractor-release.yml +++ b/Pipelines/recursive-extractor-release.yml @@ -168,3 +168,11 @@ extends: script: | mv $env:BUILD_BINARIESDIRECTORY/*.nupkg $env:BUILD_STAGINGDIRECTORY/ mv $env:BUILD_BINARIESDIRECTORY/*.snupkg $env:BUILD_STAGINGDIRECTORY/ + - task: NuGetCommand@2 + displayName: Publish NuGet Packages + inputs: + command: 'push' + packagesToPush: '$(Build.StagingDirectory)/*.nupkg' + nuGetFeedType: 'external' + publishFeedCredentials: 'sdl-oss-nuget-publish' + verbosityPush: 'Normal' \ No newline at end of file From 6d725669e62f5624a958db347ea721285439d6d4 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Fri, 1 Nov 2024 08:59:29 -0400 Subject: [PATCH 2/2] switch nuget publish to 1ES output --- Pipelines/recursive-extractor-release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Pipelines/recursive-extractor-release.yml b/Pipelines/recursive-extractor-release.yml index e87ffb5..ac6878d 100644 --- a/Pipelines/recursive-extractor-release.yml +++ b/Pipelines/recursive-extractor-release.yml @@ -91,6 +91,14 @@ extends: - output: pipelineArtifact path: '$(Build.StagingDirectory)' artifact: 'Signed_Binaries_$(System.JobId)_$(System.JobAttempt)' + # see https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/outputs/nuget-packages + - output: nuget + useDotNetTask: false + packagesToPush: '$(Build.StagingDirectory)/*.nupkg' + packageParentPath: '$(Build.StagingDirectory)' + nuGetFeedType: external + publishPackageMetadata: true + publishFeedCredentials: 'sdl-oss-nuget-publish' steps: - task: UseDotNet@2 inputs: @@ -167,12 +175,4 @@ extends: targetType: 'inline' script: | mv $env:BUILD_BINARIESDIRECTORY/*.nupkg $env:BUILD_STAGINGDIRECTORY/ - mv $env:BUILD_BINARIESDIRECTORY/*.snupkg $env:BUILD_STAGINGDIRECTORY/ - - task: NuGetCommand@2 - displayName: Publish NuGet Packages - inputs: - command: 'push' - packagesToPush: '$(Build.StagingDirectory)/*.nupkg' - nuGetFeedType: 'external' - publishFeedCredentials: 'sdl-oss-nuget-publish' - verbosityPush: 'Normal' \ No newline at end of file + mv $env:BUILD_BINARIESDIRECTORY/*.snupkg $env:BUILD_STAGINGDIRECTORY/ \ No newline at end of file