publish api docs to github pages
This commit is contained in:
@@ -32,10 +32,10 @@ jobs:
|
||||
go mod tidy
|
||||
git diff --exit-code
|
||||
|
||||
api:
|
||||
apidocs:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: make api-lint
|
||||
- run: make apidocs-lint
|
||||
|
||||
@@ -51,3 +51,18 @@ jobs:
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
apidocs:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: make apidocs-gen
|
||||
|
||||
- run: mv apidocs/*.html apidocs/index.html
|
||||
|
||||
- uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./apidocs
|
||||
|
||||
Reference in New Issue
Block a user