Skip to content

Commit 942ce58

Browse files
committed
Update workflows to use PYPI_API_TOKEN
1 parent 9162e46 commit 942ce58

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ jobs:
6767
- name: Publish to pypi
6868
run: |
6969
poetry config repositories.remote https://upload.pypi.org/legacy/
70-
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
70+
poetry --no-interaction -v publish --build --repository remote -u __token__ -p "$PYPI_API_TOKEN"
7171
env:
72-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
73-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
72+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/legacy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
working-directory: ./legacy
5151
run: |
5252
poetry config repositories.remote https://upload.pypi.org/legacy/
53-
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
53+
poetry --no-interaction -v publish --build --repository remote -u __token__ -p "$PYPI_API_TOKEN"
5454
env:
55-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
56-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
55+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)