File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -124,3 +124,27 @@ jobs:
124124 uses : softprops/action-gh-release@v2
125125 with :
126126 files : final/*.whl
127+
128+ # ###########################################################
129+ # 5. Upload to PyPI
130+ # ###########################################################
131+ upload-to-pypi :
132+ needs : release
133+ runs-on : ubuntu-latest
134+
135+ steps :
136+ - name : Download all wheel artifacts
137+ uses : actions/download-artifact@v4
138+ with :
139+ path : wheelhouse
140+
141+ - name : Flatten directory tree
142+ run : |
143+ mkdir final
144+ find wheelhouse -name "*.whl" -exec mv {} final/ \;
145+
146+ - name : Publish to PyPI
147+ uses : pypa/gh-action-pypi-publish@release/v1
148+ with :
149+ password : ${{ secrets.PYPI_API_TOKEN }}
150+ packages_dir : final
You can’t perform that action at this time.
0 commit comments