Skip to content

Commit

Permalink
correct publish workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
trhallam authored Sep 10, 2024
1 parent 33734d0 commit 1784e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
path: dist/*

publish-test:
if: needs.build-test.result == 'success' && github.event.type == 'release'
if: needs.build-test.result == 'success' && github.event_name == 'release'
name: Publish to test.PyPI
runs-on: ubuntu-latest
environment:
Expand All @@ -96,7 +96,7 @@ jobs:
repository_url: https://test.pypi.org/legacy/

publish:
if: needs.build-test.result == 'success' && github.event.type == 'release'
if: needs.build-test.result == 'success' && github.event_name == 'release'
name: Publish to PyPI
runs-on: ubuntu-latest
environment:
Expand Down

0 comments on commit 1784e93

Please sign in to comment.