Ajout des ateliers DAT201 et DAT203 #12
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: IC - Compilation et publication du matériel | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Installation de Sphinx | |
| run: pip install sphinx==8.1.3 sphinx-intl sphinx-book-theme==1.1.3 | |
| - name: Compilation de la version française | |
| run: sphinx-build fr _build/fr | |
| - name: Compilation de la version anglaise | |
| run: sphinx-build en _build/en | |
| - name: Ajouter la redirection automatique | |
| run: cp redirect.html _build/index.html | |
| - name: Déploiement | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: _build/ | |
| force_orphan: true |