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:
21 curl -sSfL https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64.tar.gz \ 21 curl -sSfL https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64.tar.gz \
22 | tar -xz -C ~/.local/bin minify 22 | tar -xz -C ~/.local/bin minify
23 - build: | 23 - build: |
24 source ~/.local/bin/env
24 cd cleberg.net 25 cd cleberg.net
25 ~/.local/bin/uv run build.py 26 uv run build.py
26 - deploy: | 27 - deploy: |
27 cd cleberg.net 28 cd cleberg.net
28 chmod 600 ~/.ssh/id_rsa 29 chmod 600 ~/.ssh/id_rsa
build.py +3 −2
@@ -568,7 +568,9 @@ def start_dev_server(build_dir):
568 568
569 569
570def main(): 570def main():
571 run_ruff() 571 env = os.environ.get("ENV", "").casefold()
572 if env != "prod":
573 run_ruff()
572 html_snippet = get_recent_posts_html("./content/blog", num_posts=3) 574 html_snippet = get_recent_posts_html("./content/blog", num_posts=3)
573 575
574 build_dir = Path(".build") 576 build_dir = Path(".build")
@@ -576,7 +578,6 @@ def main():
576 css_src = theme_dir / "styles.css" 578 css_src = theme_dir / "styles.css"
577 css_min = theme_dir / "styles.min.css" 579 css_min = theme_dir / "styles.min.css"
578 580
579 env = os.environ.get("ENV", "").casefold()
580 build = os.environ.get("BUILD", "").casefold() == "true" 581 build = os.environ.get("BUILD", "").casefold() == "true"
581 deploy = os.environ.get("DEPLOY", "").casefold() == "true" 582 deploy = os.environ.get("DEPLOY", "").casefold() == "true"
582 583