You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
751 B
27 lines
751 B
name: javascript-packages |
|
on: |
|
push: |
|
paths: |
|
- openapi.yaml |
|
|
|
jobs: |
|
run: |
|
name: Generate API Documentation |
|
runs-on: ubuntu-latest |
|
steps: |
|
- name: Checkout repo |
|
uses: actions/checkout@v4 |
|
|
|
- name: Run redoc on openapi.yaml |
|
run: | |
|
npx redoc-cli bundle openapi.yaml -o docs/api/index.html --options '{"hideHostname": true, "pathInMiddlePanel": true}' |
|
|
|
- name: Commit changes |
|
uses: EndBug/add-and-commit@v9 |
|
with: |
|
author_name: Owncast |
|
author_email: owncast@owncast.online |
|
message: "Commit updated API documentation" |
|
add: "docs/api/index.html" |
|
env: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|