Skip to content

joss p5

joss p5 #163

Workflow file for this run

name: Build docs
on:
push:
branches:
- main
- dev
jobs:
sphinx:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install GRSS (including dependencies)
run: |
python3 -m pip install --upgrade pip
source initialize.sh
pip3 install .
- name: Build docs
run: |
python3 -m pip install sphinx sphinx-copybutton sphinx-gallery nbsphinx sphinx-book-theme sphinx-favicon
brew install pandoc
cd docs
make clean html
cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html