Skip to content

Commit

Permalink
chore(submodules): move submodules, update api docs build and remove …
Browse files Browse the repository at this point in the history
…old ones again
  • Loading branch information
HsiangNianian committed Sep 8, 2024
1 parent 8c9c28d commit 412ba45
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,23 @@ jobs:
- name: Moving Submodule
run: |
ls
mv DiceParser/src/oneroll OneRoll
mv GetPlayerCard/get_pc getPCCard
mv HydroRollCore/hrc HRC
mv TRPGNivis/nivis_python TRPGNivisSDK
mkdir 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: |
pdm run sphinx-apidoc -o docs/source/api hydro_roll getPCCard HRC TRPGNivisSDK OneRoll -f -e --tocfile index
# pdm run sphinx-apidoc -o docs/source/api getPCCard -f -e --tocfile index
# pdm run sphinx-apidoc -o docs/source/api HRC -f -e --tocfile index
# pdm run sphinx-apidoc -o docs/source/api TRPGNivisSDK -f -e --tocfile index
# pdm run sphinx-apidoc -o docs/source/api OneRoll -f -e --tocfile index
cp hydro_roll modules/HydroRoll
pdm run sphinx-apidoc -o docs/source/api modules -f -e --tocfile index
- name: Remove Temp Folder
run: |
rm -rf OneRoll
rm -rf getPCCard
rm -rf HRC
rm -rf TRPGNivisSDK
ls docs/source/api
- name: Remove Submodule
run: |
git submodule deinit -f DiceParser
git submodule deinit -f GetPlayerCard
git submodule deinit -f HydroRollCore
git submodule deinit -f TRPGNivis
# - name: Remove Submodule
# run: |
# git submodule deinit -f DiceParser
# git submodule deinit -f GetPlayerCard
# git submodule deinit -f HydroRollCore
# git submodule deinit -f TRPGNivis

- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit 412ba45

Please sign in to comment.