From 0383e329b07f849e9b5860b4a30fdd6b024112df Mon Sep 17 00:00:00 2001 From: Daniel Stoops Date: Sun, 25 Aug 2024 21:58:39 +0300 Subject: [PATCH] Publish to pypi source distribution only --- .github/workflows/publish-to-pypi.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 8378f0a..9352b7d 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -18,10 +18,14 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Install pypa/build - run: python3 -m pip install build - - name: Build a binary wheel and a source tarball - run: python3 -m build + - name: Build a source tarball + run: | + python -m pip install --upgrade pip + python3 -m pip install numpy + python3 -m pip install setuptools + python3 -m pip install setuptools-scm + python3 -m pip install numpy + python3 setup.py sdist - name: Store the distribution packages uses: actions/upload-artifact@v3 with: @@ -44,6 +48,6 @@ jobs: uses: actions/download-artifact@v3 with: name: python-package-distributions - path: dist/*.tar.gz # only upload source distributions + path: dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1