26 lines
604 B
Python
26 lines
604 B
Python
#!/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.")
|