Skip to content

Commit

Permalink
ci: add failure check for publish step before tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 committed Dec 12, 2024
1 parent a9aa95f commit 6c5df05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
run: python -m build
- name: Publish to PyPI
id: publish
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
- name: Tag versions
if: ${{ steps.release.outputs.release_created }}
if: ${{ steps.release.outputs.release_created && steps.publish.outcome == 'success' }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
Expand Down

0 comments on commit 6c5df05

Please sign in to comment.