From 0cff36cf703b70b441fababfb382161dc5f578e0 Mon Sep 17 00:00:00 2001 From: Hamed Babaei Giglou Date: Fri, 6 Dec 2024 00:36:16 +0100 Subject: [PATCH] :pencil2: fix api token issue --- .github/workflows/python-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c04ae3b..ed52821 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -30,9 +30,10 @@ jobs: - name: Build the package run: poetry build + - name: Configure Poetry for PyPI + run: | + poetry config pypi-token.pypi ${{ secrets.TWINE_API_TOKEN }} + - name: Publish to PyPI - env: - TWINE_API_TOKEN: ${{ secrets.PYPI_TOKEN }} run: | - poetry config pypi-token.pypi $TWINE_API_TOKEN poetry publish --no-interaction --no-ansi