Skip to content

Docs

Docs #67

Workflow file for this run

name: Docs
on: workflow_dispatch
env:
NODE_VERSION: 18
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run docs-build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/.vitepress/dist/
deploy:
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@v2