Skip to content

now maybe with imports working #7

now maybe with imports working

now maybe with imports working #7

name: docs
on: [push, pull_request]
jobs:
build:
name: Build the documentation with Sphinx
runs-on: ubuntu-latest
container:
image: qgis/qgis:ltr
steps:
- uses: actions/checkout@v4
- name: Setup Environment
run: |
add-apt-repository universe
apt-get update
apt-get -y install python3-geopandas
apt-get -y install python3-networkx
pip3 install -r docs/requirements.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: _site/
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