Skip to content

fix docs.yaml error

fix docs.yaml error #3

Workflow file for this run

name: Deploy docs site to Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
working-directory: ./docs
- name: Build VitePress site
run: yarn build
working-directory: ./docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist