From bf019a77d228535f7b6daeaf6ef99406fc5dd0c7 Mon Sep 17 00:00:00 2001 From: Daniel Tom Date: Tue, 17 Sep 2024 18:08:44 +0200 Subject: [PATCH] Add workflow trigger --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0413402f..9efa1c2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ name: Publish Python 🐍 distribution 📦 to PyPI on: - push: - tags: - - '[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: # Only manual trigger and only for the main branch + branches: + - main jobs: build: @@ -33,7 +33,6 @@ jobs: publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest