From 9bd9faf11d3f70204084f5c61521c69594b0b3e7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Jul 2026 17:38:33 +0500 Subject: [PATCH] Read Ghost key from environment --- scripts/publish_site_batch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/publish_site_batch.py b/scripts/publish_site_batch.py index d240f5b..43a03b6 100644 --- a/scripts/publish_site_batch.py +++ b/scripts/publish_site_batch.py @@ -294,7 +294,9 @@ class GhostClient: async def main() -> None: args = parse_args() - key = Path(args.key_file).read_text(encoding="utf-8").strip() + key = os.environ.get("SITE_POSTER_GHOST_ADMIN_KEY", "").strip() + if not key: + key = Path(args.key_file).read_text(encoding="utf-8").strip() pool = await get_pool() if args.all_ready or args.all_ready_videos: media_condition = (