Skip to content

Commit 6b03e2e

Browse files
committed
ci: use github action instead of twine to publish to pypi
1 parent e33881a commit 6b03e2e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ jobs:
8181

8282
- name: Upload to PyPI
8383
working-directory: ${{ github.event.repository.name }}
84-
env:
85-
TWINE_USERNAME: __token__
86-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
8784
if: startsWith(github.ref, 'refs/tags/')
88-
run: twine upload dist/*
85+
uses: pypa/gh-action-pypi-publish@release/v1
86+
with:
87+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)