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 1
1
name : Build and upload to PyPI
2
2
3
3
on :
4
- workflow_dispatch :
5
4
release :
6
5
types :
7
6
- published
@@ -55,21 +54,21 @@ jobs:
55
54
name : cibw-sdist
56
55
path : dist/*.tar.gz
57
56
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
72
71
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