diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index cdf4dae..2daa2d0 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,19 +18,20 @@ jobs: with: python-version: '3.9' # Specify the Python version you need - - name: Install dependencies + - name: Install dependencies and activate virtual environment env: PIPENV_VENV_IN_PROJECT: true run: | python -m pip install --upgrade pip pip install pipenv pipenv install -d - echo "pwd:!!" && pwd + export VENV_HOME_DIR=$(pipenv --venv) + source $VENV_HOME_DIR/bin/activate - name: Build documentation run: | - pipenv run pandoc -s readme.md -o docs/readme.rst - pipenv run sphinx-build -M html docs/ docs/_build + pandoc -s readme.md -o docs/readme.rst + sphinx-build -M html docs/ docs/_build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3