Skip to content

Add Docs

Add Docs #1

Workflow file for this run

name: Deploy docs
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main # default branch
paths:
- webdocs/**/**
push:
branches:
- main # default branch
paths:
- webdocs/**/**
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: "20"
- name: Cache NPM dependencies
uses: actions/[email protected]
with:
path: ./webdocs/node_modules
key: ${{ runner.OS }}-npm-frontend-cache
restore-keys: |
${{ runner.OS }}-npm-frontend-cache
- name: Install Dependencies
run: |
cd webdocs
yarn install
- name: Build
run: |
cd webdocs
yarn run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./webdocs/docs/.vitepress/dist