From: Christian Shtarkov Date: Sun, 20 Oct 2024 21:31:01 +0000 (+0100) Subject: Add deployment command X-Git-Url: https://shtarkov.net/gitweb/?a=commitdiff_plain;h=90eff1de17716bd3317d5d91117efbb1efde84c4;p=shtarkov.net.git Add deployment command --- diff --git a/onerc.el b/onerc.el index 20f13cd..7c2fe57 100644 --- a/onerc.el +++ b/onerc.el @@ -169,3 +169,13 @@ INFO is a plist holding contextual information." href (or (org-string-nw-p desc) href))) (format "%s" href (or (org-string-nw-p desc) href))))) + +(defun shtarkov.net-build-and-deploy () + (interactive) + (unless (string-equal (buffer-name) "shtarkov.net.org") + (user-error "Must be visiting the proper file.")) + (when (yes-or-no-p "Do you want to build and deploy shtarkov.net?") + (one-build) + (async-shell-command + "rsync -avz public/ shtarkov.net:public_html/" + (format "*deploy shtarkov.net*"))))