File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed
Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change 11name : Build and upload to PyPI
22
33on :
4- workflow_dispatch :
54 release :
65 types :
76 - published
@@ -55,21 +54,21 @@ jobs:
5554 name : cibw-sdist
5655 path : dist/*.tar.gz
5756
58- # upload_pypi:
59- # needs: [build_wheels, build_sdist]
60- # runs-on: ubuntu-latest
61- # environment: pypi
62- # permissions:
63- # id-token: write
64- # if: github.event_name == 'release' && github.event.action == 'published'
65- # steps:
66- # - uses: actions/download-artifact@v4
67- # with:
68- # # unpacks all CIBW artifacts into dist/
69- # pattern: cibw-*
70- # path: dist
71- # merge-multiple: true
57+ upload_pypi :
58+ needs : [build_wheels, build_sdist]
59+ runs-on : ubuntu-latest
60+ environment : pypi
61+ permissions :
62+ id-token : write
63+ if : github.event_name == 'release' && github.event.action == 'published'
64+ steps :
65+ - uses : actions/download-artifact@v4
66+ with :
67+ # unpacks all CIBW artifacts into dist/
68+ pattern : cibw-*
69+ path : dist
70+ merge-multiple : true
7271
73- # - uses: pypa/gh-action-pypi-publish@release/v1
74- # with:
75- # password: ${{ secrets.PYPI_API_TOKEN }}
72+ - uses : pypa/gh-action-pypi-publish@release/v1
73+ with :
74+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments