publish api docs to github pages

This commit is contained in:
aler9 2021-08-07 19:03:07 +02:00 committed by Alessandro Ros
parent dd33ef740e
commit 96979dcbb3
6 changed files with 104 additions and 40 deletions

View file

@ -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

View file

@ -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