Skip to content

Commit

Permalink
fix gh page workflow
Browse files Browse the repository at this point in the history
* remove sphinx action
  • Loading branch information
justinngan92 committed Sep 20, 2024
1 parent 314adcd commit f34c041
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 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,6 @@ on:
branches:
- main
pull_request:
branches: [ ops-grillage ]
jobs:
deploy:
name: Deploy to GitHub Pages
Expand All @@ -14,11 +13,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

0 comments on commit f34c041

Please sign in to comment.