Updated justfile to catch non-main branch deploy

This commit is contained in:
2025-03-04 23:57:50 +00:00
parent 9c8e93a214
commit 0566eee1e2

View File

@@ -1,3 +1,8 @@
deploy:
#!/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