Skip to content

Commit

Permalink
ci: push only if a release was triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Nov 15, 2024
1 parent 8757967 commit bef1cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ jobs:

# https://python-semantic-release.readthedocs.io/en/latest/migrating_from_v7.html#repurposing-of-version-and-publish-commands
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

# https://docs.pypi.org/trusted-publishers/using-a-publisher/
- name: Publish package distributions to PyPI
if: steps.release.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit bef1cb1

Please sign in to comment.