From 11c75598f11772f4b3f5575e1de541f74de096c7 Mon Sep 17 00:00:00 2001 From: jzsmoreno <42299052+jzsmoreno@users.noreply.github.com> Date: Sat, 16 Dec 2023 17:32:16 -0600 Subject: [PATCH] Update publish-to-pypi.yml --- .github/workflows/publish-to-pypi.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 6e1086c..3d8bf58 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,9 @@ name: Publish Python distribution to PyPI -on: push +on: + push: + branches: + - 'main' jobs: build-and-publish-to-pypi: @@ -30,4 +33,4 @@ jobs: - name: Publish Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }}