Skip to content

Commit 5133601

Browse files
authored
using token for pypi upload instead of password (#55)
1 parent 8ea274d commit 5133601

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Diff for: .github/workflows/py_publish.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ name: (Py)Build and Publish to PyPi
33
on:
44
workflow_dispatch:
55

6-
env:
7-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
8-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
9-
TWINE_PYPI_ARGS: ""
10-
116
jobs:
12-
137
wheels:
148
name: Build sdist and wheel
159
runs-on: ubuntu-latest
@@ -53,7 +47,9 @@ jobs:
5347

5448
- name: Publish wheels to PyPI
5549
run: |
56-
python3 -m pip install twine
57-
ls -la dist/
58-
twine upload ${{ env.TWINE_PYPI_ARGS }} --skip-existing dist/*.whl
59-
twine upload ${{ env.TWINE_PYPI_ARGS }} dist/*tar.gz
50+
python3 -m pip install twine
51+
python3 -m twine upload --verbose --skip-existing dist/*.whl
52+
python3 -m twine upload --verbose --skip-existing dist/*tar.gz
53+
env:
54+
TWINE_USERNAME: __token__
55+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)