Skip to content

Commit 5400d28

Browse files
committed
Add Pypi upload
1 parent 7e1b1e4 commit 5400d28

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build_wheels.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,16 @@ jobs:
3434
- uses: actions/upload-artifact@v3
3535
with:
3636
path: dist/*.tar.gz
37+
upload_pypi:
38+
needs: [build_wheels, build_sdist]
39+
runs-on: ubuntu-22.04
40+
if: github.event_name == 'release' && github.event.action == 'published'
41+
steps:
42+
- uses: actions/download-artifact@v3
43+
with:
44+
name: artifact
45+
path: dist
46+
- uses: pypa/[email protected]
47+
with:
48+
user: __token__
49+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)