← Files VeraARCHIVED FILE

modules/presenza-digitale-studio/scripts/package_website.py

786 Bytes · Oct 2, 2026 · 00:29 UTC

↓ Download file

#!/usr/bin/env python3
"""Package an exact website preview or release."""

from __future__ import annotations

import argparse
import logging
from pathlib import Path

from workflow_core import package_website

__all__ = ["main"]


def main() -> int:
    """Parse arguments and package the website."""

    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--run-dir", type=Path, required=True)
    parser.add_argument("--kind", choices=["preview", "release"], required=True)
    args = parser.parse_args()
    output = package_website(args.run_dir, kind=args.kind)
    logging.basicConfig(level=logging.INFO, format="%(message)s")
    logging.info("Website package ready: %s", output)
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

SHA-256: f9d02dd3e457f40623267796989b27b5bd7d446146c93d2bd5d26a7a65df80c9