Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Nov 21, 2024
1 parent feadd21 commit 2c8088b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,6 +42,7 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: 8
context: docs

# 设置node的版本
- name: Use Node.js
Expand All @@ -50,6 +51,7 @@ jobs:
with:
node-version: '18.x'
cache: 'pnpm'
context: docs

# 打包成静态文件
- name: Build
Expand All @@ -66,4 +68,5 @@ jobs:
# 部署到 deploy-pages 分支,也就是部署后提交到那个分支
branch: gh-pages
# 填写打包好的目录名称路径,本项目配置在根目录
folder: dist
folder: dist
context: docs

0 comments on commit 2c8088b

Please sign in to comment.