aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2024-09-08 05:08:00 +0800
committerHsiangNianian <i@jyunko.cn>2024-09-08 05:08:00 +0800
commitd38d01df5d4654bff2cf5b1b4cc4495bcc66c3ba (patch)
treecfcb6792e7e2df99108101f5e804f54fb770548f
parent877d65a6d0251285a83d6dad0a13f69c3e89b563 (diff)
downloadHydroRoll-d38d01df5d4654bff2cf5b1b4cc4495bcc66c3ba.tar.gz
HydroRoll-d38d01df5d4654bff2cf5b1b4cc4495bcc66c3ba.zip
chore(workflow): update build-api workflow to add reason input and sync pdm
-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