Merge pull request #126 from SonanceAI/feat/DAT-1034 #454
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: Deploy Sphinx documentation to Pages | |
| on: | |
| push: | |
| branches: [main] | |
| # Queue deployments instead of force-cancelling: the "github-pages" environment | |
| # already serializes runs, and cancel-in-progress can kill a job mid-deployment, | |
| # leaving a stuck "queued" deployment that blocks all subsequent runs. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| pages: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - id: deployment | |
| uses: sphinx-notes/pages@v3 | |
| with: | |
| documentation_path: docs/source | |
| cache: true | |
| sphinx_build_options: -E | |
| env: | |
| # Avoid installing CUDA-enabled PyTorch wheels (they are huge and unnecessary for docs builds). | |
| # By making the PyTorch CPU wheel index the primary index, `pip install .[...]` will resolve | |
| # `torch`/`torchvision` from there, while everything else is still fetched from PyPI. | |
| PIP_INDEX_URL: https://download.pytorch.org/whl/cpu | |
| PIP_EXTRA_INDEX_URL: https://pypi.org/simple |