From 995d71fb59151835c445a5fe360fc936d8a5e0e9 Mon Sep 17 00:00:00 2001 From: blancadesal Date: Sun, 11 Feb 2024 13:05:40 +0100 Subject: [PATCH] improve release action --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59ab8d8..aa1de96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI on: - release: - types: [created] + push: + tags: + - "v*.*.*" jobs: build: runs-on: ubuntu-latest @@ -11,4 +12,5 @@ jobs: uses: JRubics/poetry-publish@v2.0 with: python_version: "3.9.17" + poetry_install_options: "--without dev" pypi_token: ${{ secrets.PYPI_API_TOKEN }}