Skip to content

Commit 5252659

Browse files
authored
Update action.yml
1 parent 294a7ad commit 5252659

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/actions/pypi__publish/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)