[devops] Remove logic to publish the mlaunch NuGet. (#17494)

The mlaunch NuGet is published from the maccore repository now.
This commit is contained in:
Rolf Bjarne Kvinge 2023-02-10 22:42:08 +01:00 коммит произвёл GitHub
Родитель 33512be08d
Коммит 51136f1656
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 0 добавлений и 40 удалений

Просмотреть файл

@ -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'

Просмотреть файл

@ -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()