Skip to content

Commit

Permalink
Merge pull request #700 from maresb/only-run-publish-job-on-release
Browse files Browse the repository at this point in the history
Only run the publish job on releases
  • Loading branch information
maresb authored Sep 14, 2024
2 parents d401a3e + cadbbd1 commit ee61081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:

publish:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
needs: build
# Run this job in an isolated GHA environment containing the OIDC credentials.
environment: release
Expand All @@ -54,5 +55,4 @@ jobs:
name: dist-files
path: dist
- name: Publish a Python distribution to PyPI
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@v1.10.1

0 comments on commit ee61081

Please sign in to comment.