From ddd28f163dcb86267de7bb7bad9c2986c168a671 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 30 Dec 2022 18:36:13 +0000 Subject: Update git pre-push hook to deploy site on push This replaces on-server generation of the static site, and also means we don't need rustc on the server to compile the comments app --- update-hooks.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 update-hooks.sh diff --git a/update-hooks.sh b/update-hooks.sh new file mode 100755 index 0000000..a37c390 --- /dev/null +++ b/update-hooks.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +## Configure git hooks +git lfs install +grep -qxF './deploy.sh' .git/hooks/pre-push || echo './deploy.sh' >> .git/hooks/pre-push -- cgit v1.2.3-ZIG