Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedRiceNoodles committed Feb 19, 2024
1 parent 96a1b1f commit cbeb428
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ jobs:
with:
# 如果配置 themeConfig.lastUpdated 为 false,则不需要添加该参数以加快检出速度
fetch-depth: 0
# 安装 pnpm
- uses: pnpm/action-setup@v2
with:
version: 8.7.0
# 组件库打包
- name: Build packages
run: pnpm build
# 安装依赖
- name: Install dependencies
run: pnpm install
# 构建文档
- name: Build with dumi
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
run: pnpm docs:build
# 部署文档
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit cbeb428

Please sign in to comment.