Compare commits
1 commit
main
...
ee916a506b
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | ee916a506b |
5
Makefile
5
Makefile
|
@ -13,6 +13,11 @@ build-prod:
|
||||||
serve:
|
serve:
|
||||||
hugo server -D -F
|
hugo server -D -F
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
@if [ -n "$$KEY" ]; then eval "$$(ssh-agent)"; echo "$$KEY" | ssh-add -; fi
|
||||||
|
if [ -z "$$USERNAME" ] || [ -z "$$SSH_HOST" ] || [ -z "$$TARGET" ]; then exit 1; fi
|
||||||
|
rsync --progress -avz --delete public/ "$$USERNAME@$$SSH_HOST:$$TARGET"
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(RM) -r public
|
$(RM) -r public
|
||||||
|
|
Loading…
Reference in a new issue