diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 46c3855..f00a2be 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ dest/ +*.tar.gz 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" |