diff options
| author | Christian Cleberg <[email protected]> | 2026-03-23 11:24:44 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-23 11:24:44 -0500 |
| commit | 7159f3c1bfc61ef36f3dc60396a155280cbfa536 (patch) | |
| tree | 03dbf057d55e8e6d2914a17157f89d06d568a2c3 | |
| parent | bf27b6228f0b62be57334eda54012c55ab7c2567 (diff) | |
| download | cleberg.net-7159f3c1bfc61ef36f3dc60396a155280cbfa536.tar.gz cleberg.net-7159f3c1bfc61ef36f3dc60396a155280cbfa536.tar.bz2 cleberg.net-7159f3c1bfc61ef36f3dc60396a155280cbfa536.zip | |
attempt to fix builds
| -rw-r--r-- | .build.yml | 6 | ||||
| -rw-r--r-- | build.py | 29 | ||||
| -rw-r--r-- | publish.el | 3 |
3 files changed, 19 insertions, 19 deletions
@@ -4,6 +4,9 @@ packages: - emacs-nox - rsync - openssh-client + - git + - curl + - tar sources: - https://git.sr.ht/~ccleberg/cleberg.net @@ -18,6 +21,7 @@ environment: tasks: - setup: | curl -LsSf https://astral.sh/uv/install.sh | sh + mkdir -p ~/.local/bin curl -sSfL https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64.tar.gz \ | tar -xz -C ~/.local/bin minify mkdir -p ~/.config/emacs/.local/straight/repos @@ -30,7 +34,7 @@ tasks: - build: | source ~/.local/bin/env cd cleberg.net - uv run build.py + uv run python3 -u build.py - deploy: | cd cleberg.net chmod 600 ~/.ssh/id_rsa @@ -247,26 +247,19 @@ def minify_html(src_html, dest_html): def run_emacs_publish(dev_mode=True): - if dev_mode: - print("Running Emacs publish script (development)...") - result = subprocess.run( - ["emacs", "--script", "publish.el"], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - text=True, - ) - else: - print("Running Emacs publish script (production)...") - result = subprocess.run( - ["emacs", "--script", "publish.el"], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL, - text=True, - ) + mode = "development" if dev_mode else "production" + print(f"Running Emacs publish script ({mode})...") + + result = subprocess.run( + ["emacs", "--script", "publish.el"], + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + text=True, + ) if result.returncode != 0: - print("Error running publish.el:") - print(result.stderr, file=sys.stderr) + print("Error running publish.el output:") + print(result.stdout) sys.exit(1) annoying_file = Path(".build/cleberg-net.html") @@ -1,4 +1,6 @@ ;;; -*- lexical-binding: t -*- +(setq debug-on-error t) + ;; Allow for macOS (dev machine) & Linux (GitHub Actions) execution (defvar site-lisp-base (expand-file-name "~/.config/emacs/.local/straight/repos")) @@ -9,6 +11,7 @@ (add-to-list 'load-path (expand-file-name "templatel" site-lisp-base)) (require 'htmlize) +(require 'templatel) (require 'weblorg) ;; Set default URL for Weblorg |
