Skip to content

Commit

Permalink
Setting up github actions to deploy documentation to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
fercer committed Sep 29, 2023
1 parent dbf34fb commit 3d0b12e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx-rtd-theme myst-nb sphinx-autoapi
pip install sphinx sphinx-rtd-theme myst-nb sphinx-autoapi jupyter-cache
- name: Sphinx build
run: |
sphinx-build docs/source docs/_build
sphinx-build docs/source docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/
publish_dir: docs/build/
force_orphan: true

0 comments on commit 3d0b12e

Please sign in to comment.