Skip to content

Commit da5d124

Browse files
committed
Cleanup the PyPI upload
1 parent d6823b9 commit da5d124

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/python.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
runs-on: ubuntu-latest
136136

137137
permissions: {}
138+
if: startsWith(github.ref, 'refs/tags')
138139

139140
needs: [ collect-sdist, build-wheels ]
140141
steps:
@@ -150,15 +151,6 @@ jobs:
150151
name: sdist
151152
path: dist
152153

153-
- run: find .
154-
155-
- name: Publish distribution to Test PyPI
156-
uses: pypa/gh-action-pypi-publish@release/v1
157-
if: github.event_name == 'push'
158-
with:
159-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
160-
repository_url: https://test.pypi.org/legacy/
161-
162154
- name: Publish distribution to PyPI
163155
if: startsWith(github.ref, 'refs/tags')
164156
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)