@@ -26,22 +26,39 @@ jobs:
2626 repository : nanoforge-dev/docs
2727 token : ${{ secrets.ACTIONS_KEY }}
2828
29+ - name : Install Node.js v24
30+ uses : actions/setup-node@v6
31+ with :
32+ node-version : 24
33+ package-manager-cache : false
34+ registry-url : https://registry.npmjs.org/
35+
36+ - uses : pnpm/action-setup@v4.1.0
37+ name : Install pnpm
38+ with :
39+ run_install : false
40+ version : 10.22.0 # Couldnt find a way to execute this action in the right directory
41+
2942 - name : setup git
3043 run : |
3144 git config --global user.name "github-actions[bot]"
3245 git config --global user.email "username@users.noreply.github.com"
3346
34- - name : setup registry code documentation
35- uses : mattnotmitt/doxygen-action@v1
36- with :
37- doxyfile-path : engine/packages/ecs-lib/docs/Doxyfile
47+ - name : install doxygen
48+ uses : ssciwr/doxygen-install@v1
49+
50+ - name : install deps
51+ run : cd engine && pnpm i
3852
3953 - name : synchronize docs
4054 run : |
41- cp -r engine/packages/ecs-lib/docs engine/docs/registry/api
55+ cd engine
56+ ./scripts/build_docs.sh
57+ cd ..
58+ rm docs/engine -rf
4259 mkdir -p docs/engine
4360 cp -r engine/docs/* docs/engine
4461 cd docs
45- git add .
46- git commit -m "chore(engine): updating docs"
47- git push origin main
62+ git add . || echo "No changes to add"
63+ git commit -m "chore(engine): updating docs" || echo "No changes to commit"
64+ git push origin main || echo "No changes to push"
0 commit comments