📝 测试文档部署

This commit is contained in:
远野千束 2024-08-28 11:48:40 +08:00
parent b2ae4b2069
commit f343b54051

View File

@ -34,15 +34,6 @@ jobs:
fetch-depth: 0 # 如果未启用 lastUpdated则不需要 fetch-depth: 0 # 如果未启用 lastUpdated则不需要
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm请取消注释 # - uses: pnpm/action-setup@v3 # 如果使用 pnpm请取消注释
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun请取消注释 # - uses: oven-sh/setup-bun@v1 # 如果使用 Bun请取消注释
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm # 或 pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
@ -53,6 +44,15 @@ jobs:
python -m pip install pydantic python -m pip install pydantic
python docs/mkdoc.py python docs/mkdoc.py
- name: Setup Node
uses: actions/setup-node@v4
run: |-
cd docs
npm install
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install node dependencies - name: Install node dependencies
run: |- run: |-
cd docs cd docs