From 7d831e8dbf9f4d297c58920b629b0007ff938eab Mon Sep 17 00:00:00 2001 From: Andres Chamorro Date: Mon, 2 Dec 2024 14:18:48 -0500 Subject: [PATCH] create and activate vnev before sphinx-build --- .github/workflows/gh-pages.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f9e7b8c..d5523d6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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