Ajout de la génération de la doc sphinx et uploader sur GH Pages #3
This file contains 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: Deploy documentation to Pages | |
# Runs on pushes targeting the default branch | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: ['main', 'develop'] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: Check out repository code | |
uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install uv and python | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Install Dependencies | |
run: | | |
uv sync --no-dev | |
uv sync --only-dev | |
- uses: borales/[email protected] | |
- id: install_jsdoc | |
run: sudo yarn add jsdoc | |
- id: deployment | |
uses: sphinx-notes/pages@v3 |