From 35f2b20812439461041df691e9c15eda55b1e507 Mon Sep 17 00:00:00 2001 From: "Dmitry (DevDK)" Date: Mon, 11 Dec 2023 20:13:25 +0500 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 803e8d2..a8028a7 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,10 +26,14 @@ jobs: uses: actions/setup-python@v3 with: python-version: '3.x' - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - name: Setup all dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build package and publish PYPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/*