Skip to content

Commit 3638cb5

Browse files
authored
Update PyPI publish step to use twine directly
1 parent 7a8ea2a commit 3638cb5

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ jobs:
3333
python -m build
3434
twine check --strict dist/*
3535
36-
- name: Publish distribution to PyPI
37-
uses: pypa/gh-action-pypi-publish@release/v1
38-
with:
39-
user: __token__
40-
password: ${{ secrets.PYPI_API_TOKEN }}
41-
skip-existing: true
36+
- name: Publish distribution to PyPI (twine, skip existing)
37+
env:
38+
TWINE_USERNAME: __token__
39+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
40+
run: |
41+
python -m pip install --upgrade twine
42+
python -m twine upload --skip-existing dist/*
4243
4344
# https://github.com/actions/first-interaction/issues/10#issuecomment-1475121828
4445
- name: Create GitHub Release

0 commit comments

Comments
 (0)