Skip to content

Deploy to GitHub Pages #6

Deploy to GitHub Pages

Deploy to GitHub Pages #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- docs
pull_request:
branches:
- docs
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout docs branch
uses: actions/checkout@v6
with:
ref: docs
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24.14.0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build site
run: bun run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: dist
deploy:
if: ${{ github.event_name != 'pull_request' }}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4