website: fix vitepress ci

This commit is contained in:
weishu
2023-11-13 12:04:37 +08:00
parent 5da1767ff8
commit 57898f13c1

View File

@@ -26,9 +26,12 @@ jobs:
# Build job # Build job
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./website
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled fetch-depth: 0 # Not needed if lastUpdated is not enabled
- name: Setup Node - name: Setup Node
@@ -36,10 +39,11 @@ jobs:
with: with:
node-version: 18 node-version: 18
cache: yarn # or pnpm / yarn cache: yarn # or pnpm / yarn
cache-dependency-path: website/yarn.lock
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Install dependencies - name: Install dependencies
run: yarn install # or pnpm install / yarn install / bun install run: yarn install --frozen-lockfile
- name: Build with VitePress - name: Build with VitePress
run: | run: |
yarn docs:build yarn docs:build