Skip to content

Commit dd27a2b

Browse files
authored
Update publish.yml
1 parent bef685e commit dd27a2b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install build
28+
pip install build twine
2929
3030
# Build the package
3131
- name: Build the package
@@ -34,6 +34,8 @@ jobs:
3434
3535
# Publish to PyPI
3636
- name: Publish to PyPI
37-
uses: pypi/gh-action-publish-to-pypi@v1.5.0
38-
with:
39-
password: ${{ secrets.PYPI_PASSWORD }}
37+
env:
38+
TWINE_USERNAME: __token__
39+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
40+
run: |
41+
python -m twine upload dist/*

0 commit comments

Comments
 (0)