Merge pull request #169 from geneontology/docs/upstream-api-check-wor… #155
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: Sphinx Documentation | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3. | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Poetry. | |
| uses: snok/install-poetry@v1 | |
| - name: install | |
| run: poetry install -E docs | |
| - name: Build documentation. | |
| run: | | |
| mkdir gh-pages | |
| touch gh-pages/.nojekyll | |
| cd docs/ | |
| poetry run sphinx-build -b html . _build | |
| cp -r _build/* ../gh-pages/ | |
| - name: Deploy documentation. | |
| if: ${{ github.event_name == 'push' }} | |
| uses: JamesIves/github-pages-deploy-action@v4.3.0 | |
| with: | |
| branch: gh-pages | |
| force: true | |
| folder: gh-pages |