File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 46
46
run : pipx run build -s
47
47
- uses : actions/upload-artifact@v4
48
48
with :
49
- name : sdist
49
+ name : source-dist
50
50
path : ./dist/*.tar.gz
51
51
52
52
build-wheel :
98
98
99
99
- uses : actions/upload-artifact@v4
100
100
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
102
102
path : ./wheelhouse/*.whl
103
103
104
104
test-sdist :
@@ -108,7 +108,7 @@ jobs:
108
108
steps :
109
109
- uses : actions/download-artifact@v4
110
110
with :
111
- name : sdist
111
+ name : source-dist
112
112
path : ./dist
113
113
- uses : actions/setup-python@v4
114
114
with :
@@ -130,17 +130,10 @@ jobs:
130
130
- uses : actions/download-artifact@v4
131
131
with :
132
132
path : dist/
133
- pattern : ' *'
133
+ pattern : ' *-dist '
134
134
merge-multiple : true
135
135
- 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/
144
137
- run : pipx run twine check dist/*
145
138
146
139
publish :
@@ -154,13 +147,7 @@ jobs:
154
147
path : dist/
155
148
pattern : ' *'
156
149
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/
164
151
- uses : pypa/gh-action-pypi-publish@release/v1
165
152
with :
166
153
user : __token__
You can’t perform that action at this time.
0 commit comments