diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 1e99fac0a..4bcb25546 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: + tags: ['v*'] jobs: build_wheels: @@ -20,6 +20,7 @@ jobs: uses: pypa/cibuildwheel@v2.16.2 env: CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* + CIBW_SKIP: cp*_i686 - uses: actions/upload-artifact@v3 with: @@ -44,7 +45,6 @@ jobs: environment: pypi permissions: id-token: write - if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v3 with: