diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 91e9ea11..6f089301 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,9 +1,12 @@ name: Build on: + push: + branches: + - main release: types: - - released + - published jobs: build_wheels: @@ -41,7 +44,8 @@ jobs: needs: [build_wheels] runs-on: ubuntu-latest environment: release - + # alternatively, to publish when a GitHub Release is created, use the following rule: + if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v3 with: