Synchronizuj paczke Cloudflare przed wdrozeniem
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -15,6 +15,17 @@ if (-not (Test-Path (Join-Path $publishDirectory "index.html"))) {
|
||||
throw "Folder wersja1 nie zawiera index.html."
|
||||
}
|
||||
|
||||
# The repository root is the editing source; keep the Cloudflare bundle in sync.
|
||||
$publishFiles = @("index.html", "styles.css", "app.js", "atut_baza.csv")
|
||||
foreach ($file in $publishFiles) {
|
||||
$source = Join-Path $root $file
|
||||
$target = Join-Path $publishDirectory $file
|
||||
if (-not (Test-Path $source)) {
|
||||
throw "Brak pliku źródłowego: $source"
|
||||
}
|
||||
Copy-Item $source $target -Force
|
||||
}
|
||||
|
||||
if (-not $ProjectName) {
|
||||
$ProjectName = $env:CLOUDFLARE_PAGES_PROJECT
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user