diff options
| author | 2024-09-08 11:27:09 +0800 | |
|---|---|---|
| committer | 2024-09-08 11:27:09 +0800 | |
| commit | 0131dda1c3555795ee49247b7acbb06a0ee44996 (patch) | |
| tree | ff570a2cc4cc05f28ef48c45625f9eb16fa159d0 /.github | |
| parent | 9cd70c827584704d923b99442b8607a7160d57fd (diff) | |
| download | HydroRoll-0131dda1c3555795ee49247b7acbb06a0ee44996.tar.gz HydroRoll-0131dda1c3555795ee49247b7acbb06a0ee44996.zip | |
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 <HsiangNianian@users.noreply.github.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build-api.yml | 24 |
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 |
