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