From 0566eee1e25004290f13f04fcb81c0db2fab5003 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 4 Mar 2025 23:57:50 +0000 Subject: [PATCH] Updated justfile to catch non-main branch deploy --- justfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index d18495f..190220a 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,8 @@ deploy: - hugo - scp -r public/* homeserver:/home/cianh/blog/ + #!/usr/bin/env sh + if [ "$(git branch --show-current)" = "main" ]; then + hugo + scp -r public/* homeserver:/home/cianh/blog/ + else + echo "Must be on the branch \"main\" to deploy" + fi