diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 22:21:49 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 22:23:45 +0200 |
commit | 0c9b4a2aa17e60f453019bed3ffcc87e459a7c6b (patch) | |
tree | aab09f66b367babc981040a20658934bfe86463c /Makefile | |
parent | bump Ruby version (diff) | |
download | wireguard-config-0c9b4a2aa17e60f453019bed3ffcc87e459a7c6b.tar.gz wireguard-config-0c9b4a2aa17e60f453019bed3ffcc87e459a7c6b.zip |
workflows/jekyll: rsync _site/ to server
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -63,3 +63,15 @@ bundle: assets/js/bundle.js assets/js/bundle.js: package-lock.json npm exec -- browserify --require ip-address --outfile '$(call escape,$@)' + +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 |