File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
.github/actions/pypi__publish Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,23 @@ runs:
2121 rm -rf dist/
2222 poetry build
2323
24- - name : Install publishing tools
24+ - name : Install twine with OIDC support
2525 shell : bash
2626 run : |
27- pip install --upgrade twine pypi-publish
27+ pip install --upgrade " twine>=5.0.0" id
2828
2929 - name : Check package
3030 shell : bash
3131 run : |
3232 twine check dist/*
33+ echo "Files to publish:"
34+ ls -la dist/
3335
34- - name : Mint OIDC token and publish
36+ - name : Publish to PyPI using OIDC
3537 shell : bash
3638 run : |
37- # pypi-publish handles the OIDC token exchange automatically
38- pypi-publish --verbose
39+ # The 'id' package provides OIDC token minting for PyPI
40+ python -m twine upload dist/* --verbose
3941
4042# name : Publish to PyPI
4143# description: 'Publish to PyPI'
You can’t perform that action at this time.
0 commit comments