Release 0.1.0: Première version stable #22
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: | |
| - main | |
| # Permissions (lecture et écriture sur la GitHub Page) | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Etape 1: Cloner le dépôt | |
| - name: Positionnement sur le dépôt | |
| uses: actions/checkout@v4 | |
| # Étape 2 : Installer Python | |
| - name: Mis en place de Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| # Étape 3 : Installer les dépendances | |
| - 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 | |
| # Étape 4 : Générer la documentation | |
| - name: Construction de la documentation (avec Sphinx) | |
| run: | | |
| sphinx-build -b html docs/source docs/build/html | |
| # Étape 5 : Sauvegarder l'artefact (pour la GitHub Page) | |
| - name: Sauvegarder la documentation | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/build/html | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| # Déploiement de la documentation | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |