Skip to content

Commit c9670d9

Browse files
committed
Do not publish when not real-signed
1 parent 420382a commit c9670d9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

windows-release/stage-publish-pymanager.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@ jobs:
7272
(dir "*\__install__.json").FullName
7373
python "$(Build.SourcesDirectory)\windows-release\merge-and-upload.py"
7474
workingDirectory: $(Build.BinariesDirectory)
75+
condition: and(succeeded(), ne(variables['IsRealSigned'], 'true'))
76+
displayName: 'Produce uploadable ZIPs'
77+
env:
78+
NO_UPLOAD: 1
79+
INDEX_URL: '$(PyDotOrgUrlPrefix)python/index-windows.json'
80+
INDEX_FILE: '$(Build.ArtifactStagingDirectory)\index\index-windows.json'
81+
MANIFEST_FILE: '$(Build.ArtifactStagingDirectory)\index\windows.json'
82+
83+
- powershell: |
84+
"Uploading following packages:"
85+
(dir "__install__.*.json").FullName
86+
(dir "*\__install__.json").FullName
87+
python "$(Build.SourcesDirectory)\windows-release\merge-and-upload.py"
88+
workingDirectory: $(Build.BinariesDirectory)
89+
condition: and(succeeded(), eq(variables['IsRealSigned'], 'true'))
7590
displayName: 'Upload ZIPs'
7691
env:
7792
INDEX_URL: '$(PyDotOrgUrlPrefix)python/index-windows.json'

0 commit comments

Comments
 (0)