From b2721e244e82cec56af90de626cee717326195af Mon Sep 17 00:00:00 2001 From: Nicholas Sharp Date: Wed, 20 Nov 2024 17:31:41 -0800 Subject: [PATCH] path fixes for publishing [ci publish] --- .github/workflows/publish.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a04fc1b..47d9365 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,6 +37,10 @@ jobs: uses: pypa/cibuildwheel@v2.21 with: config-file: ".github/workflows/cibuildwheel_config.toml" + + - name: Copy source distribution into wheelhouse + if: runner.os == 'Linux' + run: mv dist/*.tar.gz wheelhouse/ # Upload binaries to the github artifact store - name: Upload wheels @@ -71,9 +75,11 @@ jobs: - name: List downloaded files from artifact run: ls dist | cat # piping through cat prints one per line - - - name: Flatten directory - run: mv dist/* dist/ && find . -empty -type d -delete + + # dist directory has subdirs from the different jobs, merge them into one directory and delete + # the empty leftover dirs + - name: Flatten directory + run: find dist -mindepth 2 -type f -exec mv -t dist {} + && find dist -type d -empty -delete - name: List downloaded files from artifact after flatten run: ls dist | cat # piping through cat prints one per line