From 221764f3d99be5dbb1f913410e3dc394b7f6a92d Mon Sep 17 00:00:00 2001 From: Mencken Davidson <76002183+menckend@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:01:39 -0400 Subject: [PATCH] Update publish-release-to-pypi.yaml --- .github/workflows/publish-release-to-pypi.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release-to-pypi.yaml b/.github/workflows/publish-release-to-pypi.yaml index 61ff2e5..4f2233e 100644 --- a/.github/workflows/publish-release-to-pypi.yaml +++ b/.github/workflows/publish-release-to-pypi.yaml @@ -4,7 +4,7 @@ on: push jobs: build: - if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main') environment: name: pypi url: https://pypi.org/p/dcnodatg # Replace with your PyPI project name @@ -30,7 +30,7 @@ jobs: name: python-package-distributions path: dist/ publish-to-pypi: - if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main') name: >- Publish Python distribution to PyPI needs: @@ -50,7 +50,7 @@ jobs: - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 github-release: - if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main') environment: name: pypi url: https://pypi.org/p/dcnodatg # Replace with your PyPI project name