Skip to content

Commit 8adc658

Browse files
committed
ci: improve artifacts consolidation into dist and prune extras
This ensures *.zip and empty directories are removed from dist.
1 parent dfea29c commit 8adc658

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,18 @@ jobs:
5959
name_is_regexp: true
6060
path: dist
6161

62-
- name: Move all downloaded wheels to top-level dist
62+
- name: Consolidate artifacts and clean extras
63+
shell: bash
6364
run: |
64-
# Move any wheels from nested cibw dirs into dist/
65+
# Move wheels from nested cibw dirs into top-level dist/
6566
find dist -mindepth 2 -type f -name '*.whl' -exec mv -n {} dist/ \;
6667
68+
# Remove any .zip files under dist/ (we don't publish zips to PyPI)
69+
find dist -type f -iname '*.zip' -print -delete
70+
71+
# Remove intermediate cibw directories
72+
find dist -mindepth 1 -maxdepth 1 -type d -name 'cibw-wheels-*' -exec rm -rf {} +
73+
6774
- name: List downloaded wheels
6875
run: ls -1 dist/
6976

0 commit comments

Comments
 (0)