Skip to content

Merge pull request #23 from fyannk/agent/native-fuzz-targets #13

Merge pull request #23 from fyannk/agent/native-fuzz-targets

Merge pull request #23 from fyannk/agent/native-fuzz-targets #13

Workflow file for this run

name: Docs
on:
push:
branches: [main]
paths:
- 'web/**'
- '.github/workflows/docs.yml'
# Allow publishing the current main on demand, for example after a content
# fix that touched nothing else.
workflow_dispatch:
# Pages scopes are granted per job rather than to the whole workflow, so a job
# added here later does not inherit the ability to publish the site.
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
name: Build documentation site
runs-on: ubuntu-latest
permissions:
contents: read
pages: write # configure-pages reads and applies the Pages settings
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- run: npm ci
working-directory: web
- run: npm run typecheck
working-directory: web
# onBrokenLinks and onBrokenMarkdownLinks are set to throw, so a dead
# cross-reference fails here rather than shipping.
- run: npm run build
working-directory: web
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: web/build
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
id: deployment