Commit baa6262554

baa6262554d3fbf0ba93870c80ac2c176d52df9c

parent: 59533c65c4

Verified · cmc

cmc <hello@cleberg.net> · 2026-03-23 16:08 UTC

skip ruff in prod; fix build.yml path sourcing

Layout: unified · split

.build.yml +2 −1
@@ -21,8 +21,9 @@ tasks:
2121 curl -sSfL https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64.tar.gz \
2222 | tar -xz -C ~/.local/bin minify
2323 - build: |
24 source ~/.local/bin/env
2425 cd cleberg.net
25 ~/.local/bin/uv run build.py
26 uv run build.py
2627 - deploy: |
2728 cd cleberg.net
2829 chmod 600 ~/.ssh/id_rsa
build.py +3 −2
@@ -568,7 +568,9 @@ def start_dev_server(build_dir):
568568
569569
570570def main():
571 run_ruff()
571 env = os.environ.get("ENV", "").casefold()
572 if env != "prod":
573 run_ruff()
572574 html_snippet = get_recent_posts_html("./content/blog", num_posts=3)
573575
574576 build_dir = Path(".build")
@@ -576,7 +578,6 @@ def main():
576578 css_src = theme_dir / "styles.css"
577579 css_min = theme_dir / "styles.min.css"
578580
579 env = os.environ.get("ENV", "").casefold()
580581 build = os.environ.get("BUILD", "").casefold() == "true"
581582 deploy = os.environ.get("DEPLOY", "").casefold() == "true"
582583