mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-29 06:22:00 -08:00
publish api docs to github pages
This commit is contained in:
parent
dd33ef740e
commit
96979dcbb3
6 changed files with 104 additions and 40 deletions
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue