mirror of
https://gitlab.com/Cian-H/my_blog.git
synced 2026-05-01 05:21:50 +01: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
|