File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 CIBW_TEST_SKIP : " *-macosx_arm64"
7676 MACOSX_DEPLOYMENT_TARGET : ${{ matrix.macosx_deployment_target }}
7777
78- - uses : actions/upload-artifact@v3
78+ - uses : actions/upload-artifact@v4
7979 with :
80- name : dist
80+ name : dist-${{ matrix.os }}-${{ matrix.archs }}${{ matrix.manylinux && format('-{0}', matrix.manylinux) }}
8181 path : ./wheelhouse/*.whl
8282
8383 windows :
@@ -154,9 +154,9 @@ jobs:
154154 shell : cmd
155155
156156 - name : Upload wheels
157- uses : actions/upload-artifact@v3
157+ uses : actions/upload-artifact@v4
158158 with :
159- name : dist
159+ name : dist-windows-${{ matrix.arch }}
160160 path : ./wheelhouse/*.whl
161161
162162 - name : Upload fribidi.dll
@@ -179,17 +179,26 @@ jobs:
179179
180180 - run : make sdist
181181
182- - uses : actions/upload-artifact@v3
182+ - uses : actions/upload-artifact@v4
183183 with :
184- name : dist
184+ name : dist-sdist
185185 path : dist/*.tar.gz
186186
187- success :
188- permissions :
189- contents : none
187+ pypi-publish :
188+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
190189 needs : [build, windows, sdist]
191190 runs-on : ubuntu-latest
192- name : Wheels Successful
191+ name : Upload release to PyPI
192+ environment :
193+ name : release-pypi
194+ url : https://pypi.org/p/Pillow
195+ permissions :
196+ id-token : write
193197 steps :
194- - name : Success
195- run : echo Wheels Successful
198+ - uses : actions/download-artifact@v4
199+ with :
200+ pattern : dist-*
201+ path : dist
202+ merge-multiple : true
203+ - name : Publish to PyPI
204+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments