mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Exclude .exe packages from publishing to GitHub (#26859)
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user