From c483060fa86ba95ff3a54ac5b6289855ac6b5048 Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Tue, 10 Dec 2024 10:01:05 +0000 Subject: [PATCH] Github env to manage sdist path --- .github/workflows/build_upload_pypi_wheels.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_upload_pypi_wheels.yml b/.github/workflows/build_upload_pypi_wheels.yml index f403137e0..dd88e74bd 100644 --- a/.github/workflows/build_upload_pypi_wheels.yml +++ b/.github/workflows/build_upload_pypi_wheels.yml @@ -78,6 +78,11 @@ jobs: # mv $(find dist/ -name 'euphonic*.tar.gz') dist/euphonic.tar.gz # ls -R dist + - name: Get sdist filename + shell: bash -l {0} + run: | + echo EUPHONIC_SDIST="$(find dist/ -name 'euphonic*.tar.gz')" >> $GITHUB_ENV + - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: @@ -133,7 +138,7 @@ jobs: with: output-dir: wheelhouse - package-dir: "dist/python-source-distribution/euphonic*.tar.gz" + package-dir: ${{ env.EUPHONIC_SDIST }} - name: Upload wheels as build artifacts uses: actions/upload-artifact@v4