Skip to content

docs — main

docs — main #97

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
- 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