Skip to content

Commit e4b68c4

Browse files
committed
Add PyPI upload step to release workflow
1 parent 5ccb44b commit e4b68c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,12 @@ jobs:
5656
uses: softprops/action-gh-release@v1
5757
with:
5858
files: all_dist/*
59+
60+
- name: Upload to PyPI
61+
if: startsWith(github.ref, 'refs/tags/')
62+
run: |
63+
pip install --upgrade twine
64+
twine upload all_dist/*
65+
env:
66+
TWINE_USERNAME: __token__
67+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)