diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 22:42:38 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 22:42:38 +0200 |
commit | bff1477bc001f36a10530af12ec9414d4541751d (patch) | |
tree | 34189fcb71c086f94d16fb4f182d69555d155d06 /Makefile | |
parent | bump Ruby version (diff) | |
download | blog-bff1477bc001f36a10530af12ec9414d4541751d.tar.gz blog-bff1477bc001f36a10530af12ec9414d4541751d.zip |
workflows/jekyll: rsync _site/ to server
Diffstat (limited to '')
-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 |