Skip to content

Be more clear about using custom context types #5214

Be more clear about using custom context types

Be more clear about using custom context types #5214

Workflow file for this run

name: Build
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "site/**"
pull_request:
types: ["opened", "edited", "synchronize"]
paths:
- "site/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: "v2.x"
- name: Install dependencies
run: deno install --allow-scripts
working-directory: site/
- name: Generate files
run: deno task setup
working-directory: site/
- name: Build site
run: deno task build
working-directory: site/
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: "./site/docs/.vitepress/dist"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.event.pull_request.title }}
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
fails-without-credentials: false
netlify-config-path: ./site/netlify.toml
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 5