Skip to content

docs: website updates #18

docs: website updates

docs: website updates #18

Workflow file for this run

name: Build Website
on:
push:
paths:
- 'docs/**'
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@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: ./docs/package-lock.json
- uses: actions/configure-pages@v4
- name: Install dependencies
working-directory: docs
run: npm ci
- name: VitePress build
working-directory: docs
run: |
npm run build
ls -l .vitepress/dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4