Skip to content

Commit 43d6785

Browse files
authored
Generate MD5 hashes on release (#147)
1 parent fff0310 commit 43d6785

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ci/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,19 @@ stages:
309309
Get-AppxPackage PythonSoftwareFoundation.PythonManager | Remove-AppxPackage
310310
displayName: 'Remove MSIX'
311311
312+
- powershell: |
313+
$files = gci -File * -EA SilentlyContinue
314+
$hashes = $files | `
315+
Sort-Object Name | `
316+
Format-Table Name, @{
317+
Label="MD5";
318+
Expression={(Get-FileHash $_ -Algorithm MD5).Hash}
319+
}, Length -AutoSize | `
320+
Out-String -Width 4096
321+
$hashes
322+
workingDirectory: $(DIST_DIR)
323+
displayName: 'Generate hashes (MD5)'
324+
312325
- ${{ if eq(parameters.Publish, 'true') }}:
313326
- ${{ if eq(parameters.Sign, 'true') }}:
314327
- task: DownloadSecureFile@1

0 commit comments

Comments
 (0)