erste Fassung erstellt
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
IWZ Ferienwohnungen – Deploy Script
|
||||
Baut die Hugo-Seite und deployt sie zu Cloudflare Pages.
|
||||
"""
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
PROJECT = "iwz-ferienwohnungen"
|
||||
|
||||
|
||||
def run(cmd, desc):
|
||||
print(f"\n→ {desc}...")
|
||||
result = subprocess.run(cmd, shell=True)
|
||||
if result.returncode != 0:
|
||||
print(f"\nFEHLER bei: {desc}")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("=== IWZ Deploy ===")
|
||||
run("hugo", "Hugo Build")
|
||||
run(f'wrangler pages deploy public/ --project-name {PROJECT}', "Cloudflare Pages Deploy")
|
||||
print("\n✓ Fertig! Seite ist live.")
|
||||
Reference in New Issue
Block a user