Skip to content

Commit

Permalink
docs: vuepress构建文档
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Mar 28, 2024
1 parent 1d268e6 commit 7f7a66d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: 部署文档

on:
Expand All @@ -20,28 +19,29 @@ jobs:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
# submodules: true
- name: 切换工作目录
run: echo "Switching to docs directory"
working-directory: ./docs


- name: 安装 pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
version: 8


- name: 设置 Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm

- name: 切换工作目录
run: echo "Switching to docs directory"
working-directory: ./docs

- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
cd docs
pnpm run docs:build
> .vuepress/dist/.nojekyll
Expand All @@ -50,4 +50,4 @@ jobs:
with:
# 这是文档部署到的分支名称
branch: gh-pages
folder: .vuepress/dist
folder: docs/.vuepress/dist

0 comments on commit 7f7a66d

Please sign in to comment.