From 74e3c2fc787a3c32848c429c390952495fefed5a Mon Sep 17 00:00:00 2001 From: Jhony Lucas Date: Fri, 12 Jul 2024 10:34:30 -0300 Subject: [PATCH] chore: update deploy-docs.yml to activate virtual environment before building and deploying docs --- .github/workflows/deploy-docs.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index aeaec7974..05a788674 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -4,8 +4,6 @@ on: branches: - main - master - paths: - - docs/** jobs: deploy: runs-on: ubuntu-latest @@ -26,6 +24,9 @@ jobs: working-directory: ./python-package run: poetry install + - name: Activate virtual environment + run: source $(poetry env info --path)/bin/activate + - name: Build and deploy docs working-directory: ./docs run: python -m mkdocs gh-deploy --force