Skip to content

feat: 优化首页

feat: 优化首页 #74

Workflow file for this run

name: github pages
on:
push:
branches:
- doc # default branch
defaults:
run:
working-directory: ./
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# 如果配置 themeConfig.lastUpdated 为 false,则不需要添加该参数以加快检出速度
fetch-depth: 0
- name: Install pnpm
run: npm install -g pnpm@7.9.5
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build helux libs
run: pnpm run build
- name: Build with dumi
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
run: pnpm run docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# 文档目录,如果是 react 模板需要修改为 docs-dist
publish_dir: docs/dist
publish_branch: website