Skip to content

Commit

Permalink
path fixes for publishing [ci publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Nov 21, 2024
1 parent 481aef8 commit b2721e2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
uses: pypa/[email protected]
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b2721e2

Please sign in to comment.