mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-15 20:54:46 +00:00
added logic to get dll & xml files
This commit is contained in:
10
.github/scripts/ZipBuildOutput.ps1
vendored
10
.github/scripts/ZipBuildOutput.ps1
vendored
@@ -2,13 +2,10 @@ $destination = "$($Env:GITHUB_WORKSPACE)\output"
|
|||||||
New-Item -ItemType Directory -Force -Path ($destination)
|
New-Item -ItemType Directory -Force -Path ($destination)
|
||||||
Get-ChildItem ($destination)
|
Get-ChildItem ($destination)
|
||||||
$exclusions = @(git submodule foreach --quiet 'echo $name')
|
$exclusions = @(git submodule foreach --quiet 'echo $name')
|
||||||
Write-Output "Exclusions $($exclusions)"
|
|
||||||
Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.cpz", "*.cplz") | ForEach-Object{
|
Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.cpz", "*.cplz") | ForEach-Object{
|
||||||
Write-Host "checking $($_)"
|
|
||||||
$allowed = $true;
|
$allowed = $true;
|
||||||
foreach($exclude in $exclusions) {
|
foreach($exclude in $exclusions) {
|
||||||
if((Split-Path $_.FullName -Parent).contains("$($exclude)")) {
|
if((Split-Path $_.FullName -Parent).contains("$($exclude)")) {
|
||||||
Write-Host "excluding $($_)"
|
|
||||||
$allowed = $false;
|
$allowed = $false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -18,7 +15,12 @@ Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)" -include @("*.clz", "*.c
|
|||||||
$_;
|
$_;
|
||||||
}
|
}
|
||||||
} | Copy-Item -Destination ($destination)
|
} | Copy-Item -Destination ($destination)
|
||||||
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output"]
|
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\output" include @("*.cpz", "*.clz", "*.cplz") | ForEach-Object {
|
||||||
|
$filenames = @($_ -replace "cpz|clz|cplz","dll",$_ -replace "cpz|clz|cplz","xml")
|
||||||
|
if($filenames.length > 0) {
|
||||||
|
Get-ChildItem -Recurse -Path "$($Env:GITHUB_WORKSPACE)" -include $filenames | Copy-Item -Destination ($destination)
|
||||||
|
}
|
||||||
|
}
|
||||||
$version = $Env
|
$version = $Env
|
||||||
Compress-Archive -Path "$($Env:GITHUB_WORKSPACE)\output\*" -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION_FILE)-$($Env:VERSION).zip"
|
Compress-Archive -Path "$($Env:GITHUB_WORKSPACE)\output\*" -DestinationPath "$($Env:GITHUB_WORKSPACE)\$($Env:SOLUTION_FILE)-$($Env:VERSION).zip"
|
||||||
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\"
|
Get-ChildItem "$($Env:GITHUB_WORKSPACE)\"
|
||||||
|
|||||||
Reference in New Issue
Block a user