Skip to content

Commit

Permalink
CU-8694fae3r: Avoid publishing PyPI release when doing GH pre-releases (
Browse files Browse the repository at this point in the history
#424)

* CU-8694fae3r: Avoid publishing PyPI release when doing GH pre-releases

* CU-8694fae3r: Fix pre-releases tagging

* CU-8694fae3r: Allow actions to run on release edit
  • Loading branch information
mart-r authored May 3, 2024
1 parent abc97fb commit 1d78bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ production, "v[0-9]+.[0-9]+.post" ]
release:
types: [ published ]
types: [ published , edited ]

jobs:
build-n-publish-to-pypi:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
.
- name: Publish production distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags') && ! github.event.release.prerelease
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 1d78bd0

Please sign in to comment.