Skip to content

fix requirements

fix requirements #4

name: docs
on: [push, pull_request]
jobs:
build:
name: Build the documentation with Sphinx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Install package
# run: pip install -r requirements-docs.txt
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
# - name: Build documentation
# run: sphinx-build docs/ _site
- name: Upload artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html/
deploy:
name: Deploy documentation to GitHub Pages
needs: build
if: github.event_name == 'push' && github.ref =='refs/heads/master'
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
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@v4