Compare commits

...

1 commit

Author SHA1 Message Date
Bruno BELANYI ee916a506b build: makefile: add deploy step
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2021-08-08 16:23:51 +02:00

View file

@ -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