From aff1df5062d17aadd293bc269fb89a253edf79b4 Mon Sep 17 00:00:00 2001 From: Robert Taylor Date: Fri, 11 Aug 2023 14:25:11 +0000 Subject: [PATCH] Tweak push rules for release build --- .github/workflows/wheels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 64cc2e1f..17113663 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,6 +7,8 @@ on: push: branches: - main + tags: + - v** release: types: - published @@ -112,6 +114,7 @@ jobs: upload_pypi: # TODO: create an sdist that can build without a custom environment + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') needs: [build_wheels] runs-on: ubuntu-latest strategy: @@ -132,7 +135,6 @@ jobs: environment: pypi permissions: id-token: write - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v3 with: