From 5de78d34f3b6437c3a6dc02edf2ebf529cba4c53 Mon Sep 17 00:00:00 2001 From: matthuisman Date: Mon, 23 Sep 2024 14:10:12 +1200 Subject: [PATCH] ci(pypi_release): Use build --sdist argument to avoid building non-universal whl --- .github/workflows/dev_release_esptool_pypi.yml | 2 +- .github/workflows/release_esptool_pypi.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev_release_esptool_pypi.yml b/.github/workflows/dev_release_esptool_pypi.yml index a4fbbf5c1d..b27efe010a 100644 --- a/.github/workflows/dev_release_esptool_pypi.yml +++ b/.github/workflows/dev_release_esptool_pypi.yml @@ -36,5 +36,5 @@ jobs: python -m pip download esptool==$(python setup.py -V) && echo "Version ${{ github.ref_name }} already published, skipping..." && exit 1 echo "Packaging and publishing new esptool development release: ${{ github.ref_name }}" - python -m build + python -m build --sdist twine upload dist/* diff --git a/.github/workflows/release_esptool_pypi.yml b/.github/workflows/release_esptool_pypi.yml index 021b11483e..a172bac450 100644 --- a/.github/workflows/release_esptool_pypi.yml +++ b/.github/workflows/release_esptool_pypi.yml @@ -34,6 +34,6 @@ jobs: exit 1 else echo "Packaging and publishing new esptool version: ${CURRENT_VERSION}" - python -m build + python -m build --sdist twine upload dist/* fi