Add authenticated photo uploads and GitHub Actions publishing

This commit is contained in:
2026-09-19 14:16:13 +03:30
parent 0e7c825215
commit 25c82662b7
17 changed files with 873 additions and 12 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Receipt of the photos actually rendered by this build."""
import json
import os
from pathlib import Path
import re
photos = sorted(set(re.findall(r'id="photo-([a-f0-9]{64})"', Path('_site/art/index.html').read_text())))
Path('_site/photo-publication.json').write_text(json.dumps({
'commit': os.environ['GITHUB_SHA'], 'photos': photos,
}) + '\n')