From 1490d493ee5f4bb0faaa979ca36952e517fe8e19 Mon Sep 17 00:00:00 2001 From: Mencken Davidson <76002183+menckend@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:39:45 -0400 Subject: [PATCH] Update publish-release-to-pypi.yaml --- .github/workflows/publish-release-to-pypi.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-release-to-pypi.yaml b/.github/workflows/publish-release-to-pypi.yaml index 1c5d923..61ff2e5 100644 --- a/.github/workflows/publish-release-to-pypi.yaml +++ b/.github/workflows/publish-release-to-pypi.yaml @@ -1,11 +1,10 @@ -name: Publish Release package to Pypi.org +name: Publish to test.pypi on: - release: - types: ['published'] + push jobs: build: - if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') environment: name: pypi url: https://pypi.org/p/dcnodatg # Replace with your PyPI project name @@ -31,8 +30,7 @@ jobs: name: python-package-distributions path: dist/ publish-to-pypi: - if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'main') - + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') name: >- Publish Python distribution to PyPI needs: @@ -52,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, 'main') + if: contains(github.ref, '/tags/') && contains(github.event.base_ref, 'test') environment: name: pypi url: https://pypi.org/p/dcnodatg # Replace with your PyPI project name