Skip to content

docs(api): add OpenAPI and GraphQL documentation pages #3

docs(api): add OpenAPI and GraphQL documentation pages

docs(api): add OpenAPI and GraphQL documentation pages #3

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [main]
paths:
- "docs/**"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copy screenshots into docs
run: |
mkdir -p docs/public/screenshots
cp -r screenshots/. docs/public/screenshots/
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Install dependencies
working-directory: docs
run: npm ci
- name: Build site
working-directory: docs
run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: docs/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4