-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 1.01 KB
/
publish-docs.yml
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
32
33
34
35
36
37
38
name: Publish docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bundle
run: |
npx @redocly/[email protected] bundle ./src/v1alpha2/openapi.yaml --output=./build/openapi.yaml
- name: Lint
run: |
npx @redocly/[email protected] lint ./build/openapi.yaml --skip-rule=no-invalid-media-type-examples --skip-rule=no-unused-components
- name: Build
run: |
npx @redocly/[email protected] build-docs ./build/openapi.yaml --output=./build/index.html
# Deploy docs by creating a new Git commit on `gh-pages` branch
- name: Deploy
uses: peaceiris/actions-gh-pages@v3 # https://github.com/peaceiris/actions-gh-pages
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
cname: oas.zorgapis.nl
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'