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 1490d49 commit 221764f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-release-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package-name> with your PyPI project name
Expand All @@ -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:
Expand All @@ -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 <package-name> with your PyPI project name
Expand Down

0 comments on commit 221764f

Please sign in to comment.