Skip to content

Merge pull request #8 #28

Merge pull request #8

Merge pull request #8 #28

Workflow file for this run

name: docs-pages
on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/docs-pages.yml"
pull_request:
paths:
- "docs/**"
- ".github/workflows/docs-pages.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: docs-pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Configure Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v5
with:
enablement: true
- name: Install docs dependencies
working-directory: docs
run: npm ci
- name: Build docs site
working-directory: docs
run: npm run build
- name: Upload Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: docs/out
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 to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4