From 30a51c72d657bee381f2b2d7960e3e50d4eb5fa2 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Tue, 22 Aug 2023 23:43:13 +0300 Subject: [PATCH] =?UTF-8?q?ci(pypi):=20=F0=9F=9A=A7=20release=20pypi=20act?= =?UTF-8?q?ion=20automatic=20release=20per=20tag=20and=20main=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- .github/workflows/publish.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35ea3249..5091c6ed 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,15 @@ -name: Publish WorkFlow - +name: Supervision Releases to PyPi on: - release: - types: [created] + push: + branches: + - main + tags: + - 'v[0-9]+.[0-9]+[0-9]+.[0-9]' + - 'v[0-9]+.[0-9]+[0-9]+.[0-9]' + - 'v[0-9]+.[0-9]+[0-9]+.[0-9]' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: build: @@ -19,15 +26,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: 🦾 Install dependencies - run: | - python -m pip install --upgrade virtualenv - python -m pip install --upgrade pip - virtualenv venv - source venv/bin/activate - python -m pip install --upgrade pip - python -m pip install --upgrade poetry - poetry install - name: 🏗️ Build source and wheel distributions run: |