Skip to content

build: Build OpenAPI specs and Add PR Checks spec generation (#27) #37

build: Build OpenAPI specs and Add PR Checks spec generation (#27)

build: Build OpenAPI specs and Add PR Checks spec generation (#27) #37

Workflow file for this run

name: Build and Deploy Docs
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
- name: Run build script
id: build
run: ./scripts/build.sh
- name: Upload static files as artifact
id: deploy-artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4