|
72 | 72 | workingDirectory: $(Pipeline.Workspace) |
73 | 73 | displayName: 'Download PuTTY binaries' |
74 | 74 |
|
| 75 | + - powershell: | |
| 76 | + if ($env:FILENAME) { |
| 77 | + "##vso[task.setvariable variable=_PyManagerIndexFilename]${env:FILENAME}" |
| 78 | + "Updating index named '${env:FILENAME}'" |
| 79 | + } else { |
| 80 | + "##vso[task.setvariable variable=_PyManagerIndexFilename]index-windows.json" |
| 81 | + "Updating index named 'index-windows.json'" |
| 82 | + } |
| 83 | + env: |
| 84 | + FILENAME: $(PyManagerIndexFilename) |
| 85 | + displayName: 'Infer index filename' |
| 86 | +
|
75 | 87 | - powershell: | |
76 | 88 | "Uploading following packages:" |
77 | 89 | (dir "__install__.*.json").FullName |
|
82 | 94 | displayName: 'Produce uploadable ZIPs' |
83 | 95 | env: |
84 | 96 | NO_UPLOAD: 1 |
85 | | - INDEX_URL: '$(PyDotOrgUrlPrefix)python/index-windows.json' |
86 | | - INDEX_FILE: '$(Build.ArtifactStagingDirectory)\index\index-windows.json' |
| 97 | + INDEX_URL: '$(PyDotOrgUrlPrefix)python/$(_PyManagerIndexFilename)' |
| 98 | + INDEX_FILE: '$(Build.ArtifactStagingDirectory)\index\$(_PyManagerIndexFilename)' |
87 | 99 | MANIFEST_FILE: '$(Build.ArtifactStagingDirectory)\index\windows.json' |
88 | 100 |
|
89 | 101 | - powershell: | |
|
95 | 107 | condition: and(succeeded(), eq(variables['IsRealSigned'], 'true')) |
96 | 108 | displayName: 'Upload ZIPs' |
97 | 109 | env: |
98 | | - INDEX_URL: '$(PyDotOrgUrlPrefix)python/index-windows.json' |
99 | | - INDEX_FILE: '$(Build.ArtifactStagingDirectory)\index\index-windows.json' |
| 110 | + INDEX_URL: '$(PyDotOrgUrlPrefix)python/$(_PyManagerIndexFilename)' |
| 111 | + INDEX_FILE: '$(Build.ArtifactStagingDirectory)\index\$(_PyManagerIndexFilename)' |
100 | 112 | MANIFEST_FILE: '$(Build.ArtifactStagingDirectory)\index\windows.json' |
101 | 113 | UPLOAD_URL_PREFIX: $(PyDotOrgUrlPrefix) |
102 | 114 | UPLOAD_PATH_PREFIX: $(PyDotOrgUploadPathPrefix) |
|
0 commit comments