about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorana <ana@ana.st>2021-07-27 14:39:41 +0200
committerana <ana@ana.st>2021-07-27 14:39:41 +0200
commit760cd0b5997fb4ae681e21ca3530f4f46d8c8d77 (patch)
tree58cb3f76a2f7e75a20f75914193fa0cb165cc151 /Makefile
parentf0806bd799c7ba027289f6bd667fa3ef23c7c9ab (diff)
downloadwww-2-760cd0b5997fb4ae681e21ca3530f4f46d8c8d77.tar.gz
add deployment targets to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c58ef1f..9a461bd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
-.PHONY: build watch
+.PHONY: build watch tar deploy
 
 build:
 	krile ./ dest/ -c
 
 watch:
 	bash -c "trap 'kill %1' SIGINT SIGTERM EXIT; python3 -m http.server -d dest 8000 & ag -p ./.gitignore -l | entr make build"
+
+tar: build
+	tar -C dest -cvz . > site.tar.gz
+
+deploy: tar
+	fish -c "curl --oauth2-bearer ${SOURCEHUT_TOKEN} -Fcontent=@site.tar.gz https://pages.sr.ht/publish/ana.st"