diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 692b776..d0d1296 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,6 @@ name: Build -on: - pull_request: - release: - types: - - published +on: [push, pull_request] jobs: build_wheels: @@ -44,7 +40,7 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - if: github.event_name == 'release' && github.event.action == 'published' + if: github.event_name == "push" && startsWith(github.ref, "refs/tags") steps: - uses: actions/download-artifact@v2 with: