Update dependencies to latest versions (#60) #23
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: Render docs" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Docs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
python -m pip install . | |
- name: Build HTML | |
run: sphinx-build -b html doc/sphinx doc/sphinx/build/html | |
- name: Add .nojekyll file | |
run: echo > doc/sphinx/build/html/.nojekyll | |
- name: Upload artifacts | |
uses: actions/upload-pages-artifact@2d163be3ddce01512f3eea7ac5b7023b5d643ce1 | |
with: | |
name: github-pages | |
path: doc/sphinx/build/html/ | |
deploy: | |
name: Deploy Docs | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@854d7aa1b99e4509c4d1b53d69b7ba4eaf39215a | |