Skip to content

Commit 9903c69

Browse files
authored
Upload to Test PyPi only on manual trigger (#1159)
1 parent a30e608 commit 9903c69

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Release
33
on:
44
release:
55
types: [published]
6-
# For non-release, we want to exercise (a) building, (b) uploading to test.pypi.org
76
push:
87
branches: [master]
98
pull_request:
9+
workflow_dispatch:
1010

1111
jobs:
1212
deploy:
@@ -35,9 +35,7 @@ jobs:
3535

3636
- name: Publish to Test PyPI
3737
uses: pypa/gh-action-pypi-publish@release/v1
38-
if: ${{ github.event_name != 'release' }}
38+
if: ${{ github.event_name == 'workflow_dispatch' }}
3939
with:
4040
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
4141
repository_url: https://test.pypi.org/legacy/
42-
# Since we run this often, it's OK if that version already exists
43-
skip_existing: true

0 commit comments

Comments
 (0)