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