Staging
v0.5.1
https://github.com/python/cpython
Revision fc40b3020cf3c869833fd5d3720cf9768fe3bb46 authored by Raymond Hettinger on 29 November 2020, 18:47:22 UTC, committed by GitHub on 29 November 2020, 18:47:22 UTC
1 parent 8668431
Raw File
Tip revision: fc40b3020cf3c869833fd5d3720cf9768fe3bb46 authored by Raymond Hettinger on 29 November 2020, 18:47:22 UTC
bpo-42450: Minor updates to the itertools recipes (GH-23555)
Tip revision: fc40b30
stage-publish-nugetorg.yml
jobs:
- job: Publish_Nuget
  displayName: Publish Nuget packages
  condition: and(succeeded(), eq(variables['DoNuget'], 'true'))

  pool:
    vmImage: windows-2019

  workspace:
    clean: all

  steps:
  - checkout: none

  - task: DownloadBuildArtifacts@0
    displayName: 'Download artifact: nuget'
    condition: and(succeeded(), not(variables['BuildToPublish']))
    inputs:
      artifactName: nuget
      downloadPath: $(Build.BinariesDirectory)

  - task: DownloadBuildArtifacts@0
    displayName: 'Download artifact: nuget'
    condition: and(succeeded(), variables['BuildToPublish'])
    inputs:
      artifactName: nuget
      downloadPath: $(Build.BinariesDirectory)
      buildType: specific
      project: cpython
      pipeline: Windows-Release
      buildVersionToDownload: specific
      buildId: $(BuildToPublish)

  - powershell: 'gci pythonarm*.nupkg | %{ Write-Host "Not publishing: $($_.Name)"; gi $_ } | del'
    displayName: 'Prevent publishing ARM/ARM64 packages'
    workingDirectory: '$(Build.BinariesDirectory)\nuget'
    condition: and(succeeded(), not(variables['PublishArmPackages']))

  - task: NuGetCommand@2
    displayName: Push packages
    condition: and(succeeded(), eq(variables['SigningCertificate'], variables['__RealSigningCertificate']))
    inputs:
      command: push
      packagesToPush: '$(Build.BinariesDirectory)\nuget\*.nupkg'
      nuGetFeedType: external
      publishFeedCredentials: 'Python on Nuget'
back to top