Skip to content

docs — main

docs — main #127

Workflow file for this run

name: docs
# Distinct title so it isn't confused with the ci workflow on the same commit.
run-name: docs — ${{ github.head_ref || github.ref_name }}
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.162.1'
extended: true
# The try-it page folds a file in the browser with the Rust evaluator
# compiled to WebAssembly; the docs build compiles it (scripts/build-wasm.sh).
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.98.1
targets: wasm32-unknown-unknown
- uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
evaluators/rust/target
key: rust-${{ runner.os }}-${{ hashFiles('evaluators/rust/Cargo.lock') }}
- run: npm run docs:build
- uses: actions/upload-pages-artifact@v3
with:
path: docs/public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5