Skip to content

Commit 187ddff

Browse files
Switch publish workflow to twine for API token auth
Made-with: Cursor
1 parent 70e6600 commit 187ddff

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
python-version: "3.12"
1717

1818
- name: Install build tools
19-
run: pip install build
19+
run: pip install build twine
2020

2121
- name: Build package
2222
run: python -m build
2323

2424
- name: Publish to PyPI
25-
uses: pypa/gh-action-pypi-publish@release/v1
26-
with:
27-
password: ${{ secrets.PYPI_API_TOKEN }}
25+
env:
26+
TWINE_USERNAME: __token__
27+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
28+
run: twine upload dist/*

0 commit comments

Comments
 (0)