From 2c8088b3add8297e36f7ce5a1699bbd28910ee91 Mon Sep 17 00:00:00 2001 From: hanpaopao <510423039@qq.com> Date: Thu, 21 Nov 2024 12:01:57 +0800 Subject: [PATCH] docs --- .github/workflows/docs.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 96f684f5..3963f7d9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,10 +25,10 @@ env: jobs: build-and-deploy: runs-on: ubuntu-latest #指定服务器的运行环境:最新版本ubuntu - defaults: - run: - shell: bash - working-directory: ./docs #指定运行的工作目录 + # defaults: + # run: + # shell: bash + # working-directory: ./docs #指定运行的工作目录 steps: # 使用actions/checkout@v4 库拉取代码到 ubuntu 上 - name: Checkout @@ -42,6 +42,7 @@ jobs: uses: pnpm/action-setup@v2 with: version: 8 + context: docs # 设置node的版本 - name: Use Node.js @@ -50,6 +51,7 @@ jobs: with: node-version: '18.x' cache: 'pnpm' + context: docs # 打包成静态文件 - name: Build @@ -66,4 +68,5 @@ jobs: # 部署到 deploy-pages 分支,也就是部署后提交到那个分支 branch: gh-pages # 填写打包好的目录名称路径,本项目配置在根目录 - folder: dist \ No newline at end of file + folder: dist + context: docs \ No newline at end of file