From e0c7db7541d5f7a00cbfe0b2beb4282989f66a44 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 10 Feb 2026 12:49:06 -0600 Subject: implement GitLab CI --- build.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'build.py') diff --git a/build.py b/build.py index d58d683..3e9affd 100644 --- a/build.py +++ b/build.py @@ -253,19 +253,22 @@ def run_emacs_publish(dev_mode=True): print("Running Emacs publish script (production)...") result = subprocess.run( ["emacs", "--script", "publish.el"], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, text=True, ) - # Fix to remove annoying cleberg-net.html file - os.remove(".build/cleberg-net.html") - if result.returncode != 0: print("Error running publish.el:") print(result.stderr, file=sys.stderr) sys.exit(1) + annoying_file = Path(".build/cleberg-net.html") + if annoying_file.exists(): + os.remove(annoying_file) + else: + print("Warning: .build/cleberg-net.html not found, but Emacs exited successfully.") + def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): """ -- cgit v1.2.3