Skip to content

Commit f659296

Browse files
committed
chore: more upload work
1 parent 335e625 commit f659296

1 file changed

Lines changed: 25 additions & 9 deletions

File tree

.github/workflows/upload-test.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
with:
5151
name: wheels-${{ matrix.target }}
5252
path: dist
53+
# Add a step to list the contents of the dist directory
54+
- name: List linux dist directory contents
55+
run: ls -l dist || echo "dist directory does not exist or is empty"
56+
57+
5358

5459
sdist:
5560
runs-on: ubuntu-latest
@@ -64,13 +69,12 @@ jobs:
6469
- name: Upload sdist
6570
uses: actions/upload-artifact@v4
6671
with:
67-
name: wheels
72+
name: sdist
6873
path: dist
69-
# Add a step to list the contents of the dist directory
70-
- name: List dist directory contents
74+
# Add a step to list the contents of the dist directory
75+
- name: List sdist dist directory contents
7176
run: ls -l dist || echo "dist directory does not exist or is empty"
7277

73-
7478
pypi-publish:
7579
name: upload release to PyPI
7680
runs-on: ubuntu-latest
@@ -81,13 +85,25 @@ jobs:
8185
id-token: write
8286
needs: [linux, sdist]
8387
steps:
84-
- uses: actions/download-artifact@v4
88+
- name: Download aarch64 wheels artifact
89+
uses: actions/download-artifact@v4
8590
with:
86-
pattern: wheels-*
87-
name: wheels
91+
name: wheels-aarch64
8892

89-
# Add a step to list the contents of the dist directory
90-
- name: List dist directory contents
93+
- name: Download sdist artifact
94+
uses: actions/download-artifact@v4
95+
with:
96+
name: sdist
97+
98+
# Combine all artifacts into the dist directory
99+
- name: Create dist directory and move artifacts
100+
run: |
101+
mkdir -p dist
102+
mv wheels-aarch64/* dist/
103+
mv sdist/* dist/
104+
105+
# List the contents of the dist directory for debugging
106+
- name: List final dist directory contents
91107
run: ls -l dist || echo "dist directory does not exist or is empty"
92108

93109
- name: Publish package distributions to PyPI

0 commit comments

Comments
 (0)