diff options
author | Steve Dower <steve.dower@python.org> | 2022-04-06 10:55:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 10:55:47 (GMT) |
commit | 35bcf9f3c19dfbb368c08e3aa75fda72a23c030d (patch) | |
tree | 07b0c827422602191b1171aec9e270e63b672479 | |
parent | a96dfbdc3eff48d23acd6f2efc9b473ba26e8999 (diff) | |
download | cpython-35bcf9f3c19dfbb368c08e3aa75fda72a23c030d.zip cpython-35bcf9f3c19dfbb368c08e3aa75fda72a23c030d.tar.gz cpython-35bcf9f3c19dfbb368c08e3aa75fda72a23c030d.tar.bz2 |
Fix generation of MD5 table at end of Windows release build (GH-32345)
-rw-r--r-- | .azure-pipelines/windows-release/stage-publish-pythonorg.yml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/.azure-pipelines/windows-release/stage-publish-pythonorg.yml b/.azure-pipelines/windows-release/stage-publish-pythonorg.yml index e8f12b6..084134e 100644 --- a/.azure-pipelines/windows-release/stage-publish-pythonorg.yml +++ b/.azure-pipelines/windows-release/stage-publish-pythonorg.yml @@ -135,7 +135,7 @@ jobs: - powershell: | $failures = 0 - gci "msi\*\*-webinstall.exe" -File | %{ + gci "msi\*\*.exe" -File | %{ $d = mkdir "tests\$($_.BaseName)" -Force gci $d -r -File | del $ic = copy $_ $d -PassThru @@ -155,7 +155,11 @@ jobs: displayName: 'Test layouts' - powershell: | - $hashes = gci doc\htmlhelp\python*.chm, msi\*\*.exe, embed\*.zip | ` + $files = gci -File "msi\*\*.exe", "embed\*.zip" + if ("$(DoCHM)" -ieq "true") { + $files = $files + (gci -File "doc\htmlhelp\python*.chm") + } + $hashes = $files | ` Sort-Object Name | ` Format-Table Name, @{ Label="MD5"; @@ -170,9 +174,13 @@ jobs: - powershell: | "Copying:" - (gci msi\*\python*.asc, doc\htmlhelp\*.asc, embed\*.asc).FullName + $files = gci -File "msi\*\python*.asc", "embed\*.asc" + if ("$(DoCHM)" -ieq "true") { + $files = $files + (gci -File "doc\htmlhelp\*.asc") + } + $files.FullName $d = mkdir "$(Build.ArtifactStagingDirectory)\hashes" -Force - move msi\*\python*.asc, doc\htmlhelp\*.asc, embed\*.asc $d -Force + move $files $d -Force gci msi -Directory | %{ move "msi\$_\*.asc" (mkdir "$d\$_" -Force) } workingDirectory: $(Build.BinariesDirectory) displayName: 'Copy GPG signatures for build' |