File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,18 @@ jobs:
21
21
- run : go install golang.org/x/tools/cmd/present
22
22
23
23
- 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 &
26
26
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
28
34
29
35
- uses : peaceiris/actions-gh-pages@v3
30
36
with :
31
37
github_token : ${{ secrets.GITHUB_TOKEN }}
32
- publish_dir : ./
38
+ publish_dir : ./workshops
You can’t perform that action at this time.
0 commit comments