Skip to content

Commit 34fab48

Browse files
committed
allow publishing back-ports
1 parent 21f4035 commit 34fab48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/Publish-Package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
poetry version patch
5050
5151
- name: Build Python package and publish to PyPI
52-
if: ${{ github.event.release.target_commitish == 'main' }}
52+
if: ${{ github.event.release.target_commitish == 'main' || startsWith(github.event.release.target_commitish, 'refs/tags/v') }}
5353
run: |
5454
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN}}
5555

0 commit comments

Comments
 (0)