| name: Documentation Build |
| types: [opened, synchronize, reopened] |
| - '.github/workflows/docbuild.yaml' |
| - name: Checkout the code |
| uses: actions/checkout@v4 |
| uses: actions/setup-python@v5 |
| cache-dependency-path: matter/docs/requirements.txt |
| - name: Install base dependencies |
| working-directory: matter |
| pip3 install -r docs/requirements.txt |
| - name: Build documentation |
| working-directory: matter/docs |
| touch _build/html/.nojekyll |
| - name: Deploy to gh-pages |
| if: github.repository == 'project-chip/connectedhomeip' && github.event_name == 'push' && github.ref_name == 'master' |
| uses: peaceiris/actions-gh-pages@v3 |
| deploy_key: ${{ secrets.DOXYGEN_DEPLOY_KEY }} |
| external_repository: project-chip/connectedhomeip-doc |
| publish_dir: matter/docs/_build/html |
| # Keep only the latest version of the documentation |