Skip to content

Commit 1c972c1

Browse files
committed
add some checks and the use of artifact path to build-linux job
1 parent 4ab5fa8 commit 1c972c1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ jobs:
237237
-H "Content-Type: application/zip" \
238238
--data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \
239239
"https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz"
240+
with:
241+
name: dist-artifacts-manylinux-${{ matrix.python }}
242+
path: dist/*
240243

241244
# - name: Archive build artifacts
242245
# uses: actions/upload-artifact@v1
@@ -267,13 +270,25 @@ jobs:
267270
with:
268271
path: dist
269272

273+
- name: List all downloaded artifacts
274+
run: |
275+
echo "Listing all downloaded artifacts:"
276+
ls -lh dist
277+
270278
- name: Create dist directory
271279
run: mkdir -p dist
272280

281+
- name: List tar files before extraction
282+
run: |
283+
echo "Listing all tar files before extraction:"
284+
find dist -name "*.tar.gz"
285+
273286
- name: Extract tar.gz files
274287
run: |
275288
for artifact in dist/*; do
276289
if [[ "$artifact" == *.tar.gz ]]; then
290+
echo "Extracting $artifact"
291+
tar -tzf "$artifact"
277292
tar -xzf "$artifact" -C dist
278293
rm "$artifact"
279294
fi
@@ -292,6 +307,17 @@ jobs:
292307
echo "Moved files from '$dir_name' to 'dist/'"
293308
done
294309
310+
- name: Move files from subdirectories
311+
run: |
312+
for subdirectory in dist/*/; do
313+
if [ -d "$subdirectory" ]; then
314+
dir_name=$(basename "$subdirectory")
315+
mv "$subdirectory"* dist/
316+
rm -r "$subdirectory"
317+
echo "Moved files from '$dir_name' to 'dist/'"
318+
fi
319+
done
320+
295321
- name: Inspect wheel files
296322
run: |
297323
ls -R dist

0 commit comments

Comments
 (0)