Skip to content

Commit 964f392

Browse files
committed
Use PyPI token instead of user/pass
1 parent e10590c commit 964f392

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
- name: Install dependencies
5454
run: poetry install
5555
- name: Publish to pypi
56+
env:
57+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
5658
run: |
5759
poetry config repositories.remote https://upload.pypi.org/legacy/
58-
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
59-
env:
60-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
61-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
60+
poetry config pypi-token.pypi ${PYPI_TOKEN}
61+
poetry --no-interaction -v publish --build --repository remote

0 commit comments

Comments
 (0)