Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore: fix godoc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jun 4, 2021
1 parent 9b78fc2 commit f1e5a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/godoc.yml
Expand Up @@ -8,7 +8,7 @@ on:
env:
MOD: github.com/reearth/reearth-backend
REPO: github.com/reearth/reearth-backend
ADDR: 127.0.0.1:6060
GODOC_ADDR: '127.0.0.1:6060'
jobs:
godoc:
name: godoc
Expand All @@ -28,9 +28,9 @@ jobs:
run: go install golang.org/x/tools/cmd/godoc
- name: generate docs
run: |
godoc -http=$ADDR &
godoc -http="$ADDR" &
sleep 10
wget -c 10 --retry-connrefused -r -np -N -E -p -k http://${ADDR}/pkg/${MOD}/
wget -r -np -N -E -p -k "http://${ADDR}/pkg/${MOD}/"
- name: replace urls
run: |
find ./${ADDR}/ -name "*.html" -print0 | xargs -0 sed -i -e "s/http:\/\/${ADDR}\/src\/${MOD}/https:\/\/${REPO}\/blob\/main/"
Expand Down

0 comments on commit f1e5a76

Please sign in to comment.