Skip to content

Merge pull request #89 from PyLops/gradient #80

Merge pull request #89 from PyLops/gradient

Merge pull request #89 from PyLops/gradient #80

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.9
- 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/