Skip to content

Merge pull request #84 from PyLops/py3.11 #77

Merge pull request #84 from PyLops/py3.11

Merge pull request #84 from PyLops/py3.11 #77

Workflow file for this run

name: Deploy Sphinx docs to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: 'openmpi'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
pip install .
- name: Build docs
run: |
sphinx-build -b html ./docs/source ./docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/