44
44
fetch-depth : 0
45
45
- name : Build sdist
46
46
run : pipx run build -s
47
- - uses : actions/upload-artifact@v3
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 :
82
82
- uses : actions/setup-python@v3
83
83
84
84
- name : Update pip/pipx
85
- run : pip install --upgrade pip pipx
85
+ run : python -m pip install --upgrade pip pipx
86
86
87
87
# For aarch64 support
88
88
# https://cibuildwheel.pypa.io/en/stable/faq/#emulation
@@ -96,19 +96,19 @@ jobs:
96
96
env :
97
97
CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
98
98
99
- - uses : actions/upload-artifact@v3
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 :
105
105
name : Test sdist
106
106
needs : [build-sdist]
107
107
runs-on : ubuntu-latest
108
108
steps :
109
- - uses : actions/download-artifact@v3
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 :
@@ -127,16 +127,12 @@ jobs:
127
127
runs-on : ubuntu-latest
128
128
needs : [test-sdist, build-wheel]
129
129
steps :
130
- - uses : actions/download-artifact@v3
130
+ - uses : actions/download-artifact@v4
131
131
with :
132
132
path : dist/
133
- - name : Check artifacts
134
- run : ls -lR
135
- - name : Consolidate and re-check
136
- run : |
137
- mv dist/*/*.{tar.gz,whl} dist
138
- rmdir dist/*/
139
- ls -lR
133
+ pattern : ' *-dist'
134
+ merge-multiple : true
135
+ - run : ls -lR dist/
140
136
- run : pipx run twine check dist/*
141
137
142
138
publish :
@@ -145,13 +141,12 @@ jobs:
145
141
needs : [pre-publish]
146
142
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
147
143
steps :
148
- - uses : actions/download-artifact@v3
144
+ - uses : actions/download-artifact@v4
149
145
with :
150
146
path : dist/
151
- - name : Consolidate artifacts
152
- run : |
153
- mv dist/*/*.{tar.gz,whl} dist
154
- rmdir dist/*/
147
+ pattern : ' *-dist'
148
+ merge-multiple : true
149
+ - run : ls -lR dist/
155
150
- uses : pypa/gh-action-pypi-publish@release/v1
156
151
with :
157
152
user : __token__
0 commit comments