Skip to content

Commit ce474d5

Browse files
sickkickcursoragent
andcommitted
Switch publish workflow from OIDC to PYPI_API_TOKEN secret
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4f1a0b3 commit ce474d5

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ jobs:
3636
pypi-publish:
3737
runs-on: ubuntu-22.04
3838
needs: [release-build]
39-
permissions:
40-
contents: read
41-
id-token: write
42-
43-
environment:
44-
name: pypi
4539

4640
steps:
4741
- name: Retrieve release distributions
@@ -51,6 +45,9 @@ jobs:
5145
path: dist/
5246

5347
- name: Publish release distributions to PyPI
54-
uses: pypa/gh-action-pypi-publish@release/v1
55-
with:
56-
packages-dir: dist/
48+
env:
49+
TWINE_USERNAME: __token__
50+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
51+
run: |
52+
pip install twine
53+
twine upload dist/*

0 commit comments

Comments
 (0)