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