website: fix vitepress ci
This commit is contained in:
8
.github/workflows/deploy-website.yml
vendored
8
.github/workflows/deploy-website.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user