Skip to content

Commit 6ca4ac2

Browse files
committed
allow PyPI publication dry-run to be manually triggered in branch
1 parent 3e0a57c commit 6ca4ac2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/on-release-main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,16 @@ jobs:
5959
mkdir -p dist
6060
cp wheelhouse/*.whl dist/
6161
62-
- name: Publish to PyPI
62+
- name: Publish to PyPI (dry run)
6363
run: |
6464
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
6565
poetry publish --dry-run
66+
67+
- name: Publish to PyPI (release-only - push to PyPI)
68+
run: |
69+
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
6670
poetry publish --skip-existing
71+
if: github.event_name == 'release'
6772

6873
- name: Setup tmate
6974
if: failure()

0 commit comments

Comments
 (0)