Skip to content

Commit 523038d

Browse files
committed
chore: update deploy config
Signed-off-by: Manfred Touron <[email protected]>
1 parent b058673 commit 523038d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/github-pages.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ jobs:
2121
- run: go install golang.org/x/tools/cmd/present
2222

2323
- name: start server and mirror it with wget
24-
run:
25-
go run golang.org/x/tools/cmd/present -http 0.0.0.0:3999 &
24+
run: |
25+
go run golang.org/x/tools/cmd/present -http=127.0.0.1:3999 -play=false -orighost=gnolang.github.io &
2626
sleep 5
27-
wget --mirror http://localhost:3999 -P out --no-host-directories --page-requisites --adjust-extension
27+
wget --mirror http://localhost:3999 -P workshops --no-host-directories --page-requisites --adjust-extension --convert-links
28+
29+
# hacks: wget is missing styles.css (injected in JS)
30+
wget --mirror http://localhost:3999/static/styles.css -P workshops --no-host-directories --page-requisites --adjust-extension --convert-links
31+
sed -i='' s@/static/@/workshops/static/@ workshops/static/slides.js
32+
33+
- run: find workshops/ -type f -ls
2834

2935
- uses: peaceiris/actions-gh-pages@v3
3036
with:
3137
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./
38+
publish_dir: ./workshops

0 commit comments

Comments
 (0)