Skip to content

Merge branch 'feature/v1alpha2' into main #9

Merge branch 'feature/v1alpha2' into main

Merge branch 'feature/v1alpha2' into main #9

Workflow file for this run

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'