Skip to content

Commit 55e9bee

Browse files
authored
Update publish.yaml [skip ci]
1 parent e3661c1 commit 55e9bee

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
poetry config virtualenvs.in-project true --local
2323
- name: Build and publish
2424
env:
25-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
25+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
2626
run: |
27-
if [ -z "${PYPI_TOKEN}" ]; then echo "Set the PYPI_TOKEN variable in your repository secrets"; exit 1; fi
28-
poetry config pypi-token.pypi $PYPI_TOKEN
29-
poetry config repositories.pypi https://pypi.org/legacy/
30-
poetry publish --build --repository pypi
27+
if [ -z "${POETRY_PYPI_TOKEN_PYPI}" ]; then echo "Set the PYPI_TOKEN variable in your repository secrets"; exit 1; fi
28+
run: poetry publish

0 commit comments

Comments
 (0)