From 3fe55842cf7bf1024ed43022d5859600052a4ed0 Mon Sep 17 00:00:00 2001 From: Samet Akcay Date: Fri, 31 May 2024 16:50:50 +0100 Subject: [PATCH] Update the publish workflow (#2101) --- .github/workflows/publish.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb42ee63a2..dd6b896ce4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,18 +15,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - - name: Import GPG Key - run: | - echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch --yes --no-tty - - - name: Build and sign distribution + pip install build twine + - name: Build the python package run: | - python setup.py sdist bdist_wheel - gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.tar.gz - gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.whl - + python -m build - name: Upload to PyPI run: twine upload dist/* env: