From 5e46740058d3c995e664fb0e6e5253acd41b0f23 Mon Sep 17 00:00:00 2001 From: Marco Bucchi Date: Mon, 24 Aug 2020 15:27:47 -0400 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aeecb82..d846285 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,8 +10,6 @@ on: pull_request: branches: - master - # trigger on release - release: jobs: build_wheels: @@ -62,8 +60,8 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - # upload to PyPI on every release - if: github.event_name == 'release' && github.event.action == 'published' + # upload to PyPI on every tag starting with 'v' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 with: