aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-api.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml
index 74305aa..52b0e19 100644
--- a/.github/workflows/build-api.yml
+++ b/.github/workflows/build-api.yml
@@ -5,6 +5,11 @@ on:
tags:
- "v*"
workflow_dispatch:
+ inputs:
+ reason:
+ type: string
+ required: true
+ description: 'The reason to manually trigger api doc build'
jobs:
update-api-doc:
@@ -20,10 +25,14 @@ jobs:
- uses: pdm-project/setup-pdm@v4
name: Setup PDM
with:
- python-version: 3.9
- cache: true
+ python-version: 3.10
+ # cache: true
+
+ - name: sync pdm.lock
+ run: pdm sync
+
- name: Install dependencies
- run: pdm install
+ run: pdm install -dG docs
- name: Remove API Doc
run: rm -rf docs/source/api