From 2dc59da4b66f191d4466c2c0e9c324980513e67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlson=20B=C3=BCth?= Date: Fri, 20 Mar 2026 16:43:19 +0100 Subject: [PATCH] ci: change release trigger --- .github/workflows/publish.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 71ade7a..5e7c46e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,11 @@ name: Publish to PyPI on: - push: - tags: - - 'v*.*.*' + pull_request: + types: + - closed + branches: + - main permissions: contents: read @@ -12,6 +14,8 @@ permissions: jobs: publish: name: Publish to PyPI + if: | + contains(github.event.pull_request.labels.*.name, 'autorelease: tagged') runs-on: ubuntu-latest environment: name: pypi