Skip to content

Commit 99beca4

Browse files
ratalclaude
andcommitted
fix release: use twine directly instead of gh-action-pypi-publish (avoids OIDC)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5476d7e commit 99beca4

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

.github/workflows/release-linux.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ jobs:
3939
pattern: wheel-linux-*
4040
merge-multiple: true
4141
path: dist/
42-
- uses: pypa/gh-action-pypi-publish@release/v1
43-
with:
44-
password: ${{ secrets.PYPI_TOKEN }}
45-
skip-existing: true
42+
- name: Publish to PyPI
43+
env:
44+
TWINE_USERNAME: __token__
45+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
46+
run: |
47+
pip install twine
48+
twine upload dist/* --skip-existing

.github/workflows/release-macos.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
with:
3030
name: wheel-macos
3131
path: dist/
32-
- uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
password: ${{ secrets.PYPI_TOKEN }}
35-
skip-existing: true
32+
- name: Publish to PyPI
33+
env:
34+
TWINE_USERNAME: __token__
35+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
36+
run: |
37+
pip install twine
38+
twine upload dist/* --skip-existing

.github/workflows/release-windows.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
with:
2929
name: wheel-windows
3030
path: dist/
31-
- uses: pypa/gh-action-pypi-publish@release/v1
32-
with:
33-
password: ${{ secrets.PYPI_TOKEN }}
34-
skip-existing: true
31+
- name: Publish to PyPI
32+
env:
33+
TWINE_USERNAME: __token__
34+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
35+
run: |
36+
pip install twine
37+
twine upload dist/* --skip-existing

0 commit comments

Comments
 (0)