diff --git a/.github/workflows/publish_documentation.yml b/.github/workflows/publish_documentation.yml index cc27674..2f0aea9 100644 --- a/.github/workflows/publish_documentation.yml +++ b/.github/workflows/publish_documentation.yml @@ -4,8 +4,6 @@ on: tags: - "*" workflow_dispatch: -env: - POETRY_VERSION: 1.8.4 jobs: build: name: Deploy docs @@ -16,12 +14,17 @@ jobs: - uses: actions/setup-python@v2 with: python-version: 3.12 - - uses: abatilo/actions-poetry@v2 + - uses: snok/install-poetry@v1 with: - poetry-version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + virtualenvs-path: .venv + installer-parallel: true - run: poetry lock --no-update && poetry install --no-root - name: Install polars-bio - run: poetry add polars-bio + run: | + source .venv/bin/activate + pip install polars-bio - name: Deploy docs run: poetry run mkdocs gh-deploy --remote-branch gh-pages -f mkdocs.yml --force env: