mirror of
https://gitlab.com/Cian-H/my_blog.git
synced 2025-12-22 14:21:59 +00:00
9 lines
225 B
Makefile
9 lines
225 B
Makefile
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
|