Skip to content

Update build-api-docs.yml #2

Update build-api-docs.yml

Update build-api-docs.yml #2

name: Generate API docs and deploy to GitHub Pages
on:
# Automatically trigger when push to main branch
push:
# Enable running workflow manually from GitHub Actions
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
generate-api-docs:
name: Generate API Documentation
runs-on: ubuntu-latest
steps:
- name: Generate API docs and deploy to GitHub Pages
uses: msayson/[email protected]
with:
api-configs: |-
[
{
"openapi-json-filepath": "doc/openapi/public_api.yml",
"api-doc-filepath": "latest/docs.html"
}
]
api-docs-dir: docs