diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-20 21:11:49 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-20 21:11:49 +0200 |
commit | 55a4419d78eada59ead430ac81ac842eeccd9f8d (patch) | |
tree | 9878a8e86d22ff4f20a10f37bc0d5a0d625d5b68 /Makefile | |
parent | bump Ruby version (diff) | |
download | jekyll-theme-55a4419d78eada59ead430ac81ac842eeccd9f8d.tar.gz jekyll-theme-55a4419d78eada59ead430ac81ac842eeccd9f8d.zip |
workflows/ci: 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 |