Skip to content

chore(sync): update docs-main from upstream #140

chore(sync): update docs-main from upstream

chore(sync): update docs-main from upstream #140

Workflow file for this run

name: Build & Deploy Docs
on:
push:
branches: [main]
pull_request:
# Allow the deploy job to publish to GitHub Pages.
permissions:
contents: read
pages: write
id-token: write
# One concurrent deploy; cancel superseded runs on master.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '22'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build site (Antora)
run: npm run antora
- name: Test (go.php redirector map, incl. target existence)
run: npm test
- name: Build search index (Pagefind)
run: npm run pagefind
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v5
with:
path: public
deploy:
# Only main deploys; PRs validate the build only.
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5