Skip to content

Deploy Docs

Deploy Docs #1123

Workflow file for this run

name: Deploy Docs
on:
workflow_run:
workflows: ["Build Package"]
types:
- completed
branches: [main]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
pull-requests: write
jobs:
deploy-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Build
run: |
npm ci
npm run build --if-present
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: apps/docs/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4