File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,13 +83,20 @@ jobs:
8383 shell : pwsh
8484 run : |
8585 $tagName = if ("${{ github.ref_type }}" -eq "tag") { "${{ github.ref_name }}" } else { "latest-build" }
86-
87- $files = Get-ChildItem -Path "installer\build\*" -Include *.zip, *.7z, *.msi -Recurse
88- if ($files.Count -eq 0) { throw "No artifacts found in installer\build!" }
8986
9087 mkdir out_assets
9188
92- $files | Copy-Item -Destination out_assets\
89+ # 1. Select the Min version (usually .7z or .zip "zip|7z", as configured in the bat)
90+ # 2. Select Full... PluginAdmin.zip
91+ $patterns = @("*Full*", "*Min*")
92+ $files = Get-ChildItem -Path "installer\build\*" -Include $patterns -Recurse | Where-Object { $_.Extension -match "7z" }
93+
94+ if ($files.Count -eq 0) { throw "Required artifacts (Min or PluginAdmin) not found!" }
95+
96+ foreach ($file in $files) {
97+ Write-Host "Selecting for release: $($file.FullName)"
98+ Copy-Item -Path $file.FullName -Destination "out_assets\"
99+ }
93100
94101 echo "RELEASE_TAG=$tagName" >> $env:GITHUB_ENV
95102
You can’t perform that action at this time.
0 commit comments