From 20ed4c1f9e5cfbea1e49fd2dcc1e6048c6174731 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Mon, 11 Sep 2023 10:33:42 -0400 Subject: [PATCH] pypi on tag push (#552) --- .github/workflows/pypi.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4f3e9bcc32..790b9ce36e 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -2,12 +2,11 @@ name: publish pypi on: push: - branches: - - "main" + tags: + - '*' jobs: pypi-publish: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') name: Upload release to PyPI runs-on: ubuntu-latest environment: