Skip to content

Commit 0e283e0

Browse files
committed
Refactor: PyPI publish step: set packages-dir to dist with structured artifacts
1 parent 04249ca commit 0e283e0

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/CI.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,25 @@ jobs:
159159
steps:
160160
- uses: actions/download-artifact@v4
161161
with:
162-
path: .
163-
merge-multiple: true
162+
path: dist
163+
merge-multiple: false
164164

165165
- name: List distributions before upload
166-
run: ls -lh .
166+
run: ls -lh dist/**/*.whl
167167

168168
- name: List and verify artifacts
169169
run: |
170-
ls -lh ./*.whl
171-
file ./*.whl
170+
ls -lh dist/**/*.whl
171+
file dist/**/*.whl
172172
173173
- name: Validate wheels
174174
run: |
175-
for file in ./*.whl; do
175+
for file in dist/**/*.whl; do
176176
echo "Checking $file"
177177
python -m zipfile -t "$file" || { echo "Invalid wheel: $file"; exit 1; }
178178
done
179-
179+
180180
- name: Publish to PyPI (trusted publisher)
181-
#uses: pypa/gh-action-pypi-publish@v1.8.8
182181
uses: pypa/gh-action-pypi-publish@release/v1
183182
with:
184-
packages-dir: ./
183+
packages-dir: dist

0 commit comments

Comments
 (0)