Skip to content

Commit f9c0f33

Browse files
committed
TST: More [build wheels]
1 parent bbebd89 commit f9c0f33

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/wheels.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: pipx run build -s
4747
- uses: actions/upload-artifact@v4
4848
with:
49-
name: sdist
49+
name: source-dist
5050
path: ./dist/*.tar.gz
5151

5252
build-wheel:
@@ -98,7 +98,7 @@ jobs:
9898

9999
- uses: actions/upload-artifact@v4
100100
with:
101-
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
101+
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}-dist
102102
path: ./wheelhouse/*.whl
103103

104104
test-sdist:
@@ -108,7 +108,7 @@ jobs:
108108
steps:
109109
- uses: actions/download-artifact@v4
110110
with:
111-
name: sdist
111+
name: source-dist
112112
path: ./dist
113113
- uses: actions/setup-python@v4
114114
with:
@@ -130,17 +130,10 @@ jobs:
130130
- uses: actions/download-artifact@v4
131131
with:
132132
path: dist/
133-
pattern: '*'
133+
pattern: '*-dist'
134134
merge-multiple: true
135135
- name: Check artifacts
136-
run: ls -lR
137-
- name: Consolidate and re-check
138-
run: |
139-
set -eo pipefail
140-
ls -lR dist/
141-
mv dist/*/*.{tar.gz,whl} dist
142-
rmdir dist/*/
143-
ls -lR dist/
136+
run: ls -lR dist/
144137
- run: pipx run twine check dist/*
145138

146139
publish:
@@ -154,13 +147,7 @@ jobs:
154147
path: dist/
155148
pattern: '*'
156149
merge-multiple: true
157-
- name: Consolidate artifacts
158-
run: |
159-
set -eo pipefail
160-
ls -lR dist/
161-
mv dist/*/*.{tar.gz,whl} dist
162-
rmdir dist/*/
163-
ls -lR dist/
150+
- run: ls -lR dist/
164151
- uses: pypa/gh-action-pypi-publish@release/v1
165152
with:
166153
user: __token__

0 commit comments

Comments
 (0)