ci(pypi): 🚧 release pypi action automatic release per tag and main branch

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER 2023-08-22 23:43:13 +03:00
parent 6b0be9c55b
commit 30a51c72d6
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 11 additions and 13 deletions

View File

@ -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: |