@@ -41,12 +41,12 @@ jobs:
4141 SDIST_NAME : ${{ steps.sdist.outputs.SDIST_NAME }}
4242
4343 steps :
44- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
44+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 .0.1
4545 with :
4646 fetch-depth : 0
4747 persist-credentials : false
4848
49- - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0 .0
49+ - uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1 .0
5050 name : Install Python
5151 with :
5252 python-version : ' 3.11'
7272 run : twine check dist/*
7373
7474 - name : Upload sdist result
75- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
75+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7676 with :
7777 name : cibw-sdist
7878 path : dist/*.tar.gz
@@ -137,7 +137,7 @@ jobs:
137137
138138 steps :
139139 - name : Download sdist
140- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
140+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
141141 with :
142142 name : cibw-sdist
143143 path : dist/
@@ -147,7 +147,7 @@ jobs:
147147 run : Remove-Item -Recurse C:\Strawberry
148148
149149 - name : Build wheels for CPython 3.14
150- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
150+ uses : pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3 .1
151151 with :
152152 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
153153 env :
@@ -157,7 +157,7 @@ jobs:
157157 CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
158158
159159 - name : Build wheels for CPython 3.13
160- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
160+ uses : pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3 .1
161161 with :
162162 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
163163 env :
@@ -166,23 +166,23 @@ jobs:
166166 CIBW_ARCHS : ${{ matrix.cibw_archs }}
167167
168168 - name : Build wheels for CPython 3.12
169- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
169+ uses : pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3 .1
170170 with :
171171 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
172172 env :
173173 CIBW_BUILD : " cp312-*"
174174 CIBW_ARCHS : ${{ matrix.cibw_archs }}
175175
176176 - name : Build wheels for CPython 3.11
177- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
177+ uses : pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3 .1
178178 with :
179179 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
180180 env :
181181 CIBW_BUILD : " cp311-*"
182182 CIBW_ARCHS : ${{ matrix.cibw_archs }}
183183
184184 - name : Build wheels for PyPy
185- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
185+ uses : pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3 .1
186186 with :
187187 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
188188 env :
@@ -191,37 +191,8 @@ jobs:
191191 CIBW_ENABLE : pypy
192192 if : matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest' && matrix.os != 'windows-11-arm'
193193
194- - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
194+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
195195 with :
196196 name : cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }}
197197 path : ./wheelhouse/*.whl
198198 if-no-files-found : error
199-
200- publish :
201- if : github.repository == 'matplotlib/matplotlib' && github.event_name == 'push' && github.ref_type == 'tag'
202- name : Upload release to PyPI
203- needs : [build_sdist, build_wheels]
204- runs-on : ubuntu-latest
205- environment : release
206- permissions :
207- id-token : write
208- attestations : write
209- contents : read
210- steps :
211- - name : Download packages
212- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
213- with :
214- pattern : cibw-*
215- path : dist
216- merge-multiple : true
217-
218- - name : Print out packages
219- run : ls dist
220-
221- - name : Generate artifact attestation for sdist and wheel
222- uses : actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
223- with :
224- subject-path : dist/matplotlib-*
225-
226- - name : Publish package distributions to PyPI
227- uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
0 commit comments