Skip to content

Commit af3f9a8

Browse files
committed
allow releasing from releases
1 parent 7d40855 commit af3f9a8

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, 'releases/')}}
5353
run: |
5454
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN}}
5555

0 commit comments

Comments
 (0)