Skip to content

Commit

Permalink
Update publish-release-to-pypi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
menckend authored Oct 24, 2024
1 parent ed5f54a commit 1490d49
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish-release-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -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 <package-name> with your PyPI project name
Expand All @@ -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:
Expand All @@ -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 <package-name> with your PyPI project name
Expand Down

0 comments on commit 1490d49

Please sign in to comment.