Skip to content

Commit

Permalink
fix: assets copy in assets :3
Browse files Browse the repository at this point in the history
  • Loading branch information
yannouuuu committed Aug 6, 2024
1 parent 2227aff commit 6f837fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ jobs:
# Copy contents of the assets folder
if (Test-Path "assets") {
Copy-Item assets ./ -Recurse -Force
Get-ChildItem -Path "assets" -Recurse | ForEach-Object {
$targetPath = $_.FullName -replace [regex]::Escape((Get-Location)), (Get-Location)
if (-not (Test-Path $targetPath)) {
Copy-Item $_.FullName $targetPath -Force
}
}
Write-Host "Copied contents of assets folder"
} else {
Write-Host "Error: assets folder not found"
Expand Down

0 comments on commit 6f837fd

Please sign in to comment.