diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-20 21:19:55 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-20 21:19:55 +0200 |
commit | f1993b756b81584ed95bc3f8bd80d143fcb250cb (patch) | |
tree | 9ffae7f917fedef75fb38a2c233c86d81d37808b /Makefile | |
parent | bump Ruby version (diff) | |
download | sorting-algorithms-f1993b756b81584ed95bc3f8bd80d143fcb250cb.tar.gz sorting-algorithms-f1993b756b81584ed95bc3f8bd80d143fcb250cb.zip |
workflows/jekyll: rsync _site/ to server
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -50,3 +50,15 @@ wget: .PHONY: view view: xdg-open '$(call escape,$(URL))' &> /dev/null + +REMOTE_USER ?= who +REMOTE_HOST ?= where +REMOTE_DIR ?= /path/to/dir + +$(eval $(call noexpand,REMOTE_USER)) +$(eval $(call noexpand,REMOTE_HOST)) +$(eval $(call noexpand,REMOTE_DIR)) + +.PHONY: deploy +deploy: + rsync -avh -e 'ssh -o StrictHostKeyChecking=no' _site/ '$(call escape,$(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_DIR)/)' --delete |