From f62e07eb30885b1dfd98700438b00a416375fbe8 Mon Sep 17 00:00:00 2001 From: DeepakYadav <41716815+deepak7376@users.noreply.github.com> Date: Wed, 12 Jun 2024 00:13:55 +0530 Subject: [PATCH] Update python-publish.yaml --- .github/workflows/python-publish.yaml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml index ba4d941..defdd34 100644 --- a/.github/workflows/python-publish.yaml +++ b/.github/workflows/python-publish.yaml @@ -1,6 +1,3 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries - name: Upload Python Package on: @@ -24,13 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build + pip install setuptools wheel - name: Build package - run: python -m build + run: python setup.py sdist bdist_wheel - name: Publish package - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_SECRET_ROBUSTBASE }} - run: | - python -m pip install twine - python -m twine upload --repository pypi dist/* + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_SECRET_ROBUSTBASE }}