Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/sphinx_docs_to_gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
pull_request:
branches: [ ops-grillage ]
branches: [ gh-pages ]
jobs:
deploy:
name: Deploy to GitHub Pages
Expand All @@ -14,11 +14,23 @@ jobs:

- name: Upgrade pip
run: python -m pip install --upgrade pip

- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
pre-build-command: "apt-get install -y pandoc && python -m pip install sphinx-autodoc-typehints && python -m pip install nbsphinx"

- name: Install the package and its dependencies
run: |
python -m pip install .

- name: Install the docs-build dependencies
run: |
sudo apt-get install -y pandoc
python -m pip install sphinx
python -m pip install sphinx-autodoc-typehints
python -m pip install nbsphinx
python -m pip install pydata-sphinx-theme

- name: Build the docs
run: |
cd docs
make html

- name: Commit documentation changes
run: |
Expand Down
Loading