-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 809 Bytes
/
pages.yml
File metadata and controls
31 lines (28 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Generate API docs and deploy to GitHub Pages
on:
# Automatically trigger when push to main branch
push:
branches: ['main']
# 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/openapi-github-pages-action@v2
with:
api-configs: |-
[
{
"openapi-json-filepath": "dist/schema.json",
"api-doc-filepath": "index.html"
}
]
api-docs-dir: docs