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