From 0131dda1c3555795ee49247b7acbb06a0ee44996 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 8 Sep 2024 11:27:09 +0800 Subject: Feat submodule (#107) * chore(submodules): update submodules with new repos and paths, adjust workflow for api build * chore(submodules): remove outdated submodules and adjust workflow for api build * (chore(submodules): remove outdated submodules and adjust workflow for api build) * chore(submodules): add new submodule echo and update workflow for api build * chore(submodules): add new submodules TRPGNivis, HydroRollCore, GetPlayerCard, conventional_role_play, DiceParser and update workflow for api build * chore(submodules): add new submodules DiceParser, infini and update workflow for api build * chore(submodules): move submodules, update api docs build and remove old ones * chore(submodules): move submodules, update api docs build and remove old ones * chore(submodules): update submodules with new repos and paths, adjust workflow for api build * chore(submodules): move submodules, update api docs build and remove old ones * chore(submodules): update submodules with new repos and paths, adjust workflow for api build * chore(docs): update api docs with sphinx-apidoc * chore(submodules): update api docs build workflow with combined commands * chore(docs): update api docs with sphinx-apidoc * chore(submodules): move submodules, update api docs build and remove old ones again * chore(submodules): update submodules with new repos and paths, adjust workflow for api build * chore(docs): update api docs with sphinx-apidoc * chore(submodules): remove submodules and update api docs build workflow * chore(submodules): move submodules, update api docs build and remove old ones again * chore(submodules): move submodules again, adjust api docs build workflow * chore(docs): update api docs with sphinx-apidoc --------- Co-authored-by: HsiangNianian --- .github/workflows/build-api.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to '.github') 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 -- cgit v1.2.3-70-g09d2