From 0bb728bd52c503b47a99662330e644a357711b70 Mon Sep 17 00:00:00 2001 From: hkir-dev Date: Tue, 17 Sep 2024 21:21:37 +0100 Subject: [PATCH] fix github actions --- .github/workflows/pypi-publish.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 6c8145f..e603c9c 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -50,8 +50,18 @@ jobs: # with: # password: ${{ secrets.PYPI_API_TOKEN }} - - name: Publish distribution to PyPI +# - name: Publish distribution to PyPI +# run: | +# poetry config repositories.pypi https://pypi.org/ +# poetry version ${{ github.ref_name }} +# poetry publish --build -r pypi -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} + + - name: Build run: | - poetry config repositories.pypi https://pypi.org/legacy/ poetry version ${{ github.ref_name }} - poetry publish --build -r pypi -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} + poetry build + + - name: Publish + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + poetry publish