mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-15 01:34:38 +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
|
fetch-depth: 0
|
||||||
# 如果你文档需要 Git 子模块,取消注释下一行
|
# 如果你文档需要 Git 子模块,取消注释下一行
|
||||||
# submodules: true
|
# submodules: true
|
||||||
|
- name: 切换工作目录
|
||||||
|
run: echo "Switching to docs directory"
|
||||||
|
working-directory: ./docs
|
||||||
|
|
||||||
- name: 安装 pnpm
|
- name: 安装 pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v2
|
||||||
@ -40,11 +43,11 @@ jobs:
|
|||||||
NODE_OPTIONS: --max_old_space_size=8192
|
NODE_OPTIONS: --max_old_space_size=8192
|
||||||
run: |-
|
run: |-
|
||||||
pnpm run docs:build
|
pnpm run docs:build
|
||||||
> docs/.vuepress/dist/.nojekyll
|
> .vuepress/dist/.nojekyll
|
||||||
|
|
||||||
- name: 部署文档
|
- name: 部署文档
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
# 这是文档部署到的分支名称
|
# 这是文档部署到的分支名称
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: docs/.vuepress/dist
|
folder: .vuepress/dist
|
||||||
|
Loading…
Reference in New Issue
Block a user