[devops] Remove logic to publish the mlaunch NuGet. (#17494)
The mlaunch NuGet is published from the maccore repository now.
This commit is contained in:
Родитель
33512be08d
Коммит
51136f1656
|
@ -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()
|
Загрузка…
Ссылка в новой задаче