From eb8bed92889b61443ae0b0b475ad27a5eed47e62 Mon Sep 17 00:00:00 2001 From: "Travis A. O'Brien" Date: Sun, 5 Nov 2023 13:38:36 -0500 Subject: [PATCH] fix to push on release --- .github/workflows/wheels.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index b019001..2e00188 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -13,8 +13,9 @@ on: types: - published push: - tags: - - '*' + branches: + - main + concurrency: group: wheels-${{ github.head_ref }} @@ -132,7 +133,6 @@ jobs: name: Upload if release needs: [build_wheels, build_arch_wheels, build_sdist] runs-on: ubuntu-latest - if: github.event_name == 'create' && github.ref_type == 'tag' steps: - uses: actions/download-artifact@v3 @@ -144,5 +144,6 @@ jobs: run: ls -lh dist - uses: pypa/gh-action-pypi-publish@release/v1 + if: github.event_name == 'release' && github.event.action == 'published' with: password: ${{ secrets.pypi_password }}