From f151dc08b2799fd735d0d6b86c9ba90ed75b0c07 Mon Sep 17 00:00:00 2001 From: thejinchao Date: Sat, 22 Feb 2025 20:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 0727cc1..34c88fb 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -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: # 这是文档部署到的分支名称