CI: Qualité du code #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Documentation - LogBuster | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write # Nécessaire pour déployer sur GitHub Pages | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Positionnement sur le dépôt | |
| uses: actions/checkout@v4 | |
| - name: Mis en place de Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Installation des dépendances | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install sphinx | |
| pip install sphinx_rtd_theme --break-system-packages | |
| pip install colorama | |
| - name: Construction de la documentation (avec Sphinx) | |
| run: | | |
| sphinx-build -b html docs/source docs/build/html | |
| - name: Publication la documentation générée | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/build/html # Dossier contenant la doc générée | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |