From 92226395aa1782cbbb56a568fc17e04f13039a20 Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Mon, 9 Dec 2024 22:48:16 +0000 Subject: [PATCH] Rename sdist in wheel-building job --- .github/workflows/build_upload_pypi_wheels.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_upload_pypi_wheels.yml b/.github/workflows/build_upload_pypi_wheels.yml index 219d89e06..3e07034b5 100644 --- a/.github/workflows/build_upload_pypi_wheels.yml +++ b/.github/workflows/build_upload_pypi_wheels.yml @@ -55,15 +55,22 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Ensure tags are fetched for versioning - - name: Download sdist uses: actions/download-artifact@v4 with: path: dist/ + - name: Rename dowloaded sdist + shell: bash -l {0} + run: | + ls -R dist + mv $(find dist/ -name 'euphonic*.tar.gz') dist/euphonic.tar.gz + ls -R dist + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Ensure tags are fetched for versioning + - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: @@ -119,7 +126,7 @@ jobs: with: output-dir: wheelhouse - package-dir: dist/*.tar.gz + package-dir: "dist/euphonic.tar.gz" - name: Upload wheels as build artifacts uses: actions/upload-artifact@v4