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