diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4df1db427..cb8e4f509 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -112,7 +112,7 @@ jobs: upload_pypi: needs: [tests, lint, build] runs-on: ubuntu-latest - if: github.event_name == 'release' && github.event.action == 'published' + if: startsWith(github.ref, 'refs/tags/') steps: - uses: actions/download-artifact@v2 with: