Skip to content

Commit 39d10f7

Browse files
authored
Updated upload_pypi action
1 parent b1584f9 commit 39d10f7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/pypi.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,16 @@ jobs:
7878

7979
upload_pypi:
8080
name: Upload to PyPI on release
81-
needs: [build]
81+
needs: [build_wheels, make_sdist]
8282
runs-on: ubuntu-latest
8383
if: github.event_name == 'release' && github.event.action == 'published'
8484
steps:
85-
- uses: actions/download-artifact@v3
86-
with:
87-
name: artifact
88-
path: dist
89-
- uses: pypa/gh-action-pypi-publish@v1.6.4
90-
with:
91-
user: __token__
92-
password: ${{ secrets.pypi_secret }}
85+
- uses: actions/download-artifact@v3
86+
with:
87+
name: artifact
88+
path: dist
89+
90+
- uses: pypa/gh-action-pypi-publish@v1.5.0
91+
with:
92+
user: __token__
93+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)