测试添加按需引入 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
Build: | |
# 作业将在其上运行的运行器类型 | |
runs-on: ubuntu-latest | |
# 步骤表示将作为作业的一部分执行的一系列任务 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2.1.0 | |
with: | |
version: 7.2.1 | |
- name: Install modules | |
run: pnpm install | |
- name: Run Lint | |
run: pnpm run docs:build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/.vitepress/dist |