- commit
- 429214b
- parent
- e5b98b2
- author
- Eric Bower
- date
- 2024-02-14 21:17:13 +0000 UTC
fix: gha for docs
3 files changed,
+22,
-19
+5,
-2
1@@ -6,6 +6,9 @@ on:
2 jobs:
3 static:
4 runs-on: ubuntu-latest
5+ defaults:
6+ run:
7+ working-directory: ./docs
8 steps:
9 - uses: actions/checkout@v3
10 with:
11@@ -16,7 +19,7 @@ jobs:
12 go-version: '1.20'
13 - name: generate site
14 run: |
15- cd docs && go mod tidy
16+ go mod tidy
17 make ssg
18 - name: Set outputs
19 id: vars
20@@ -26,7 +29,7 @@ jobs:
21 with:
22 user: erock
23 key: ${{ secrets.PRIVATE_KEY }}
24- src: './docs/public/'
25+ src: './public/'
26 project: "starfx-docs-${{ steps.vars.outputs.sha_short }}"
27 promote: "starfx-prod"
28 retain: "starfx-docs"
D
Makefile
+0,
-17
1@@ -1,17 +0,0 @@
2-clean:
3- rm -rf ./docs/public/*
4- echo "" > ./docs/public/.gitkeep
5-.PHONY: clean
6-
7-ssg: clean
8- cd docs && go run ./main.go
9- cp ./docs/static/* ./docs/public
10-.PHONY: ssg
11-
12-local: ssg
13- rsync -vr ./docs/public/ erock@pgs.sh:/starfx-local
14-.PHONY: dev
15-
16-prod: ssg
17- rsync -vr ./docs/public/ erock@pgs.sh:/starfx-prod
18-.PHONY: prod
+17,
-0
1@@ -0,0 +1,17 @@
2+clean:
3+ rm -rf ./public/*
4+ echo "" > ./public/.gitkeep
5+.PHONY: clean
6+
7+ssg: clean
8+ go run ./main.go
9+ cp ./static/* ./public
10+.PHONY: ssg
11+
12+local: ssg
13+ rsync -vr ./public/ erock@pgs.sh:/starfx-local
14+.PHONY: dev
15+
16+prod: ssg
17+ rsync -vr ./public/ erock@pgs.sh:/starfx-prod
18+.PHONY: prod