docs: vuepress构建文档

This commit is contained in:
远野千束 2024-03-28 09:49:41 +08:00
parent 97d936f9be
commit 1d268e6f97

View File

@ -20,6 +20,9 @@ jobs:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
# submodules: true
- name: 切换工作目录
run: echo "Switching to docs directory"
working-directory: ./docs
- name: 安装 pnpm
uses: pnpm/action-setup@v2
@ -40,11 +43,11 @@ jobs:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
pnpm run docs:build
> docs/.vuepress/dist/.nojekyll
> .vuepress/dist/.nojekyll
- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4
with:
# 这是文档部署到的分支名称
branch: gh-pages
folder: docs/.vuepress/dist
folder: .vuepress/dist