Skip to content

Commit

Permalink
Merge pull request #96 from worldbank/fix/gh-pages-action
Browse files Browse the repository at this point in the history
activate venv in action
  • Loading branch information
andresfchamorro authored Dec 2, 2024
2 parents 896f306 + 7d831e8 commit 81eb5b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +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 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 81eb5b9

Please sign in to comment.