blob: 9a461bd27f5393f89c5d8dbd05bbc3d893fa3715 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
.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"
|