aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-api.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml
index 306e8f6..246ed2b 100644
--- a/.github/workflows/build-api.yml
+++ b/.github/workflows/build-api.yml
@@ -37,13 +37,29 @@ jobs:
- name: Remove API Doc
run: rm -rf docs/source/api
- - name: Build API Doc
+ - name: Clone Submodule
run: |
- pdm run sphinx-apidoc -o docs/source/api hydro_roll -f -e --tocfile index
- shell: bash
+ git submodule update --init --recursive
+
+ - name: Moving Submodule
+ run: |
+ mkdir -p modules
+ mv DiceParser/src/oneroll modules/OneRoll
+ mv GetPlayerCard/get_pc modules/GetPlayerCard
+ mv HydroRollCore/hrc modules/HydroRollCore
+ mv TRPGNivis/nivis_python modules/TRPGNivisSDK
+
+ - name: Build API Doc For HydroRoll
+ run: |
+ cp -r hydro_roll modules/HydroRoll
+ pdm run sphinx-apidoc -o docs/source/api modules -f -e --tocfile index
+
+ - name: Remove Temp Folder
+ run: |
+ rm -rf modules
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
- branch: main
+ branch: ${{ github.event.branch }}
commit_message: "chore(docs): update api docs with sphinx-apidoc" \ No newline at end of file