Skip to content

Commit

Permalink
create and activate vnev before sphinx-build
Browse files Browse the repository at this point in the history
  • Loading branch information
andresfchamorro committed Dec 2, 2024
1 parent f248125 commit 7d831e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
working-directory: space2stats_api/src
run: |
if [ -f pyproject.toml ]; then
pip install poetry && poetry install --with docs
python3 -m venv book
source book/bin/activate
pip install poetry
poetry install --with docs
fi
- name: Build Jupyter Book using Sphinx
run: |
source $(poetry env info --path)/bin/activate
source book/bin/activate
sphinx-build docs _build/html -b html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit 7d831e8

Please sign in to comment.