mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
docs: vuepress构建文档
This commit is contained in:
parent
97d936f9be
commit
1d268e6f97
7
.github/workflows/deploy-docs.yml
vendored
7
.github/workflows/deploy-docs.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user