From 531b872df113037cffd022bf284ab60aeb7fff41 Mon Sep 17 00:00:00 2001 From: relf Date: Mon, 30 Oct 2023 16:48:29 +0100 Subject: [PATCH] Use v tag to release on Pypi --- .github/workflows/build_release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 224e6058d..4c013eb25 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -2,8 +2,8 @@ name: Build and upload to PyPI on: workflow_dispatch: - release: - types: [published] + push: + branches: [master] jobs: build_wheels: @@ -45,7 +45,7 @@ jobs: environment: pypi permissions: id-token: write - if: github.event_name == 'release' && github.event.action == 'published' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v3 with: