Skip to content

文档(*):更新文件链接;更新适用软件;增加代理链接;优化表格排版。 #7

文档(*):更新文件链接;更新适用软件;增加代理链接;优化表格排版。

文档(*):更新文件链接;更新适用软件;增加代理链接;优化表格排版。 #7

Workflow file for this run

name: 部署文档
on:
push:
branches:
- gh-pages
paths-ignore:
- "./README.md"
pull_request:
branches:
- gh-pages
paths-ignore:
- "./README.md"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
with:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
# submodules: true
- name: 设置 Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 配置页面
uses: actions/configure-pages@v4
- name: 启用 CorePack
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: 安装依赖
run: |
pnpm install --frozen-lockfile
- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
pnpm run docs:build
- name: 上传产物
uses: actions/upload-pages-artifact@v3
with:
path: "./docs/.vitepress/dist"
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: 部署页面
id: deployment
uses: actions/deploy-pages@v4