更新部署文档
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
|
|
||||||
name: 部署文档
|
name: Build And Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
# 确保这是你正在使用的分支名称
|
# 确保这是你正在使用的分支名称
|
||||||
- main
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -23,23 +24,23 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: 设置 Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: yarn
|
cache: yarn
|
||||||
|
|
||||||
- name: 安装依赖
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- name: 构建文档
|
- name: Build docs
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: --max_old_space_size=8192
|
NODE_OPTIONS: --max_old_space_size=8192
|
||||||
run: |-
|
run: |-
|
||||||
yarn run docs:build
|
yarn run docs:build
|
||||||
> docs/.vuepress/dist/.nojekyll
|
> docs/.vuepress/dist/.nojekyll
|
||||||
|
|
||||||
- name: 部署文档
|
- name: Deploy docs
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
# 这是文档部署到的分支名称
|
# 这是文档部署到的分支名称
|
||||||
|
|||||||
Reference in New Issue
Block a user