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