diff options
| author | alex <alex@pdp7.net> | 2026-02-15 20:16:44 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-02-15 20:21:01 +0100 |
| commit | 47fe10e00a76bb9d5f60758b24231135e20906bf (patch) | |
| tree | a85f805c14c3104640c6fbacc06ead5a037b0e11 /blog/post-receive | |
| parent | e05dee11a50f75b266f91d80fc91a493ceda8ae0 (diff) | |
Migrate to coppewebitemaster
Diffstat (limited to 'blog/post-receive')
| -rwxr-xr-x | blog/post-receive | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/blog/post-receive b/blog/post-receive index d5f26676..0721ce3b 100755 --- a/blog/post-receive +++ b/blog/post-receive @@ -8,7 +8,6 @@ import tempfile target_ref = "refs/heads/master" pushed_commit = None -uv = pathlib.Path.home() / ".local" / "bin" / "uv" dest = pathlib.Path.home() / "public_html" refs = sys.stdin.readlines() @@ -30,6 +29,5 @@ with tempfile.TemporaryDirectory() as tempdir: subprocess.run(["git", "worktree", "add", repo, pushed_commit], check=True) blog = repo / "blog" os.chdir(blog) - built = tempdir / "built" - subprocess.run([uv, "run", "blog", "build", blog, built], check=True) - subprocess.run(["rsync", "-r", "--delete-after", f"{built}/", f"{dest}/"], check=True) + os.environ["PATH"] = "/home/alex/.local/bin:" + os.environ["PATH"] + subprocess.run(["./build.sh", dest], check=True) |
