Skip to content

Commit 40bf60d

Browse files
committed
fix workflow after rebase
1 parent cf81518 commit 40bf60d

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/CI_build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)