Skip to content

Merge pull request #5 from mikkel-bergmann/custom-domain #3

Merge pull request #5 from mikkel-bergmann/custom-domain

Merge pull request #5 from mikkel-bergmann/custom-domain #3

Workflow file for this run

# SPDX-FileCopyrightText: 2026 Mikkel Bergmann
# SPDX-License-Identifier: MIT
name: Deploy site
on:
push:
branches: [main]
paths:
- 'site/**'
- 'docs/**'
- 'CHANGELOG.md'
- 'examples/**'
- 'llms.txt'
- '.github/workflows/deploy-site.yml'
workflow_dispatch:
# Allow GITHUB_TOKEN to deploy to Pages, and only one concurrent deploy.
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@v5
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: site/package-lock.json
- run: npm ci
working-directory: site
- run: npm run build
working-directory: site
- uses: actions/upload-pages-artifact@v3
with:
path: site/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4