Skip to content

Update dependencies to Next.js 15.5.5 and @types/react-dom 19.2.2; re… #5

Update dependencies to Next.js 15.5.5 and @types/react-dom 19.2.2; re…

Update dependencies to Next.js 15.5.5 and @types/react-dom 19.2.2; re… #5

Workflow file for this run

name: Deploy Docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.1.36'
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Determine base path
id: pages
run: |
REPO_NAME="${GITHUB_REPOSITORY#*/}"
if [[ "$REPO_NAME" == *.github.io ]]; then
echo "base_path=" >>"$GITHUB_OUTPUT"
else
echo "base_path=/$REPO_NAME" >>"$GITHUB_OUTPUT"
fi
- name: Build static site
run: bun run docs:build
env:
NEXT_PUBLIC_BASE_PATH: "${{ steps.pages.outputs.base_path }}"
NEXT_TELEMETRY_DISABLED: '1'
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4