Skip to content

Commit a59ecff

Browse files
committed
ci: correct PyPi upload secret
1 parent f27fabd commit a59ecff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Upload Python Package
22

33
on:
44
release:
5-
types: [published]
5+
types:
6+
- published
67

78
jobs:
89
deploy:
@@ -30,9 +31,9 @@ jobs:
3031
- name: Install deps
3132
run: poetry install --no-interaction
3233

33-
- name: Build and publish
34+
- name: Publish to PyPI
3435
env:
35-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_PASSWORD }}
36+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
3637
run: |
37-
poetry config pypi-token.pypi POETRY_PYPI_TOKEN_PYPI
38+
poetry config pypi-token.pypi $PYPI_TOKEN
3839
poetry publish --build

0 commit comments

Comments
 (0)