From ba7825c254005abaa2610800b7b55edccd22e2fd Mon Sep 17 00:00:00 2001 From: Sadman Ahmed Shanto Date: Sun, 24 Dec 2023 15:53:06 -0600 Subject: [PATCH] Update PyPI workflow to include building source and wheel distributions --- .github/workflows/pypi.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 58c862ec..7bb2b27c 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -23,10 +23,16 @@ jobs: python -m pip install --upgrade pip python -m pip install build twine - - name: Build package - run: | - python setup.py sdist bdist_wheel - + - name: Install Wheel + run: pip install wheel + + - name: Build Source and Wheel distribution + run: python setup.py sdist bdist_wheel + shell: /usr/bin/bash -e {0} + env: + pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64 + LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib + - name: Publish package env: TWINE_USERNAME: __token__