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 8, 2021
1 parent 5bc0894 commit 5f808b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/godoc.yml
Expand Up @@ -8,14 +8,14 @@ on:
env:
MOD: github.com/reearth/reearth-backend
REPO: github.com/reearth/reearth-backend
ADDR: 'localhost:6060'
ADDR: 'localhost:8080'
jobs:
godoc:
name: godoc
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
BASE_PATH: ${{ github.event.workflow_run.head_branch }}
DIR: ${{ github.event.workflow_run.head_branch }}
steps:
- name: set up
uses: actions/setup-go@v2
Expand All @@ -24,14 +24,21 @@ jobs:
id: go
- name: checkout
uses: actions/checkout@v2
- name: cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go mod download
- name: install godoc
run: go install golang.org/x/tools/cmd/godoc@latest
- name: generate docs
id: godoc
continue-on-error: true
run: |
godoc -http="$ADDR" &
sleep 10
sleep 15
wget -r -np -N -E -p -k "http://${ADDR}/pkg/${MOD}/"
- name: replace urls
run: |
Expand Down
1 change: 0 additions & 1 deletion go.mod
@@ -1,6 +1,5 @@
module github.com/reearth/reearth-backend

// +heroku install golang.org/x/tools/cmd/godoc
require (
cloud.google.com/go v0.80.0
cloud.google.com/go/storage v1.14.0
Expand Down

0 comments on commit 5f808b7

Please sign in to comment.