Exclude .exe packages from publishing to GitHub (#26859)

This commit is contained in:
Dongbo Wang
2026-02-20 10:29:13 -08:00
committed by GitHub
parent f2c9775d70
commit b58ec36093
@@ -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 |