repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
bb9f67c
parent
f62edf2
author
Eric Bower
date
2023-08-13 19:32:02 +0000 UTC
chore: local deployment
1 files changed,  +12, -3
M Makefile
+12, -3
 1@@ -1,3 +1,6 @@
 2+REV=$(shell git rev-parse --short HEAD)
 3+PROJECT="git-pgit-$(REV)"
 4+
 5 clean:
 6 	rm -rf ./public
 7 .PHONY: clean
 8@@ -11,10 +14,16 @@ img:
 9 .PHONY: img
10 
11 static: build clean
12-	cp -R ./static ./public
13-	./pgit
14+	./pgit \
15+		--out ./public \
16+		--label pgit \
17+		--desc "static site generator for git" \
18+		--clone-url "https://github.com/picosh/pgit.git" \
19+		--home-url "https://git.erock.io" \
20+		--revs main
21 .PHONY:
22 
23 deploy:
24-	scp -r ./public/* erock@pgs.sh:/git
25+	scp -r ./public/* erock@pgs.sh:/$(PROJECT)
26+	ssh erock@pgs.sh git-pgit link $(PROJECT)
27 .PHONY: deploy