From ea7a6585830a44910e9bc221890b4be4009067c9 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Mon, 4 Mar 2024 10:02:30 +0100 Subject: [PATCH] Fix publish workflow --- .../.github/workflows/publish.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_name}}/.github/workflows/publish.yaml b/{{cookiecutter.project_name}}/.github/workflows/publish.yaml index 000a08e..ac6c553 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/publish.yaml +++ b/{{cookiecutter.project_name}}/.github/workflows/publish.yaml @@ -13,10 +13,12 @@ jobs: uses: actions/setup-python@v1 with: python-version: {{cookiecutter.python_version}} - - name: Install dependencies + - name: Install poetry + uses: abatilo/actions-poetry@v2 + - name: Setup a local virtual environment (if no poetry.toml file) run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine + poetry config virtualenvs.create true --local + poetry config virtualenvs.in-project true --local - name: Build and publish env: {% raw -%}