This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
支持为WebSocket的文件分段上传 #72
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: Documentation Deploy | |
on: | |
push: | |
branches: | |
- docs | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Build | |
run: pnpm build | |
- name: Deploy | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
build_dir: docs/.vuepress/dist | |
target_branch: gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |