Konfiguracja wdrazania Cloudflare Pages

This commit is contained in:
2026-09-18 19:21:23 +02:00
parent 5b9aba3df3
commit b90c3d137a
5 changed files with 84 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
$hooks = Join-Path $root ".git\hooks"
$source = Join-Path $root "hooks\post-push"
$target = Join-Path $hooks "post-push"
if (-not (Test-Path $hooks)) {
throw "Nie znaleziono folderu .git/hooks. Uruchom skrypt w katalogu repozytorium."
}
Copy-Item $source $target -Force
Write-Host "Zainstalowano hook post-push: $target"
Write-Host "Po kazdym udanym git push zostanie uruchomiony deploy do Cloudflare Pages."