[release/v7.6] Exclude .exe packages from publishing to GitHub (#26887)

This commit is contained in:
Dongbo Wang
2026-02-24 11:39:25 -08:00
committed by GitHub
parent 0a88d498fd
commit b71310621c
@@ -35,6 +35,14 @@ jobs:
targetType: inline
script: |
$Path = "$(Pipeline.Workspace)/GitHubPackages"
# The .exe packages are for Windows Update only and should not be uploaded to GitHub release.
$exefiles = Get-ChildItem -Path $Path -Filter *.exe
if ($exefiles) {
Write-Verbose -Verbose "Remove .exe packages:"
$exefiles | Remove-Item -Force -Verbose
}
$OutputPath = Join-Path $Path 'hashes.sha256'
$packages = Get-ChildItem -Path $Path -Include * -Recurse -File
$checksums = $packages |