Files
iwz/deploy.py
T
2026-08-24 16:17:08 +02:00

26 lines
604 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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.")