From 51136f1656c3720b2b6d37323230ba3a4c5173ae Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 10 Feb 2023 22:42:08 +0100 Subject: [PATCH] [devops] Remove logic to publish the mlaunch NuGet. (#17494) The mlaunch NuGet is published from the maccore repository now. --- .../sign-and-notarized/dotnet-signing.yml | 6 ---- .../sign-and-notarized/publish-nugets.yml | 34 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 tools/devops/automation/templates/sign-and-notarized/publish-nugets.yml diff --git a/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml b/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml index 1741ba33d6..8e5113b312 100644 --- a/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml +++ b/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml @@ -132,12 +132,6 @@ jobs: displayName: 'Sign bundle.zip' workingDirectory: $(Build.ArtifactStagingDirectory) - - template: publish-nugets.yml - parameters: - isPR: ${{ parameters.isPR }} - repositoryAlias: ${{ parameters.repositoryAlias }} - commit: ${{ parameters.commit }} - # always upload no matter what, since if we are not signing we need the artifact in the pipeline - task: PublishPipelineArtifact@1 displayName: 'Publish Notarized Dotnet Artifacts' diff --git a/tools/devops/automation/templates/sign-and-notarized/publish-nugets.yml b/tools/devops/automation/templates/sign-and-notarized/publish-nugets.yml deleted file mode 100644 index cf6aef675a..0000000000 --- a/tools/devops/automation/templates/sign-and-notarized/publish-nugets.yml +++ /dev/null @@ -1,34 +0,0 @@ -# all steps that are required to publish the nugets - -parameters: -- name: isPR - type: boolean - -- name: repositoryAlias - type: string - default: self - -- name: commit - type: string - default: HEAD - -steps: - -# do not publish on pull requets -- ${{ if not(parameters.isPR) }}: - - task: NuGetCommand@2 - displayName: 'Publish Nugets to dotnet-eng' - inputs: - command: push - packagesToPush: $(Build.SourcesDirectory)/mlaunch/*.nupkg - nuGetFeedType: external - publishFeedCredentials: dotnet-eng - condition: and(succeeded(), eq(variables['configuration.BuildNugets'], 'True')) - continueOnError: true # should not stop the build since is not official just yet. - -# Only executed when the publishing of the nugets failed. -- bash: | - echo "##vso[task.setvariable variable=NUGETS_PUBLISHED;isOutput=true]Failed" - name: nugetPublishing - displayName: 'Failed publishing nugets' - condition: failed()