This repository has been archived by the owner on May 12, 2024. It is now read-only.
feat(docs): Add slider verify help #9
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: 部署文档 | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
pages: write | |
id-token: write | |
jobs: | |
deploy-gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 设置 Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: 安装依赖 | |
run: | | |
corepack enable | |
npm ci | |
- name: 构建文档 | |
env: | |
NODE_OPTIONS: --max_old_space_size=8192 | |
run: |- | |
npm run docs:build | |
> docs/.vuepress/dist/.nojekyll | |
- name: 上传文档 | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './docs/.vuepress/dist' | |
- name: 部署文档 | |
uses: actions/deploy-pages@main |