@@ -11,36 +11,41 @@ jobs:
1111 runs-on : ${{matrix.platform}}
1212 strategy :
1313 matrix :
14- platform : [ubuntu-latest, macos-latest, windows-latest, macos-14 ]
14+ platform : [ubuntu-latest, macos-latest, windows-latest, macos-13 ]
1515 steps :
16- - uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1717 - name : Build wheels
18- uses : pypa/cibuildwheel@v2.16.5
19- - uses : actions/upload-artifact@v3
18+ uses : pypa/cibuildwheel@v2.22.0
19+ - uses : actions/upload-artifact@v4
2020 with :
2121 path : ./wheelhouse/*.whl
22+ name : wheels-${{ matrix.platform }}
2223
2324 upload_pypi :
2425 name : Release To PyPi
2526 needs : [build_wheels]
2627 runs-on : ubuntu-latest
28+ permissions :
29+ id-token : write
2730 steps :
28- - uses : actions/download-artifact@v3
29- with :
30- name : artifact
31- path : dist
32- - uses : pypa/gh-action-pypi-publish@v1.6.4
33- with :
34- user : __token__
35- password : ${{ secrets.PYPI_API_TOKEN }}
31+ - uses : actions/setup-python@v4
32+ with :
33+ python-version : " 3.12"
34+
35+ - uses : actions/download-artifact@v4
36+ with :
37+ path : dist
38+ pattern : wheels-*
39+ merge-multiple : true
40+ - uses : pypa/gh-action-pypi-publish@v1.8.10
3641
3742 create_release :
3843 name : Create GitHub Release
3944 runs-on : ubuntu-latest
4045 needs : [build_wheels]
4146 steps :
4247 - name : Checkout code
43- uses : actions/checkout@v3
48+ uses : actions/checkout@v4
4449 with :
4550 fetch-depth : 2
4651 - name : Tag Version
5055 echo "tag_name=${VER}" >> $GITHUB_OUTPUT
5156 - uses : actions/download-artifact@v3
5257 with :
53- name : artifact
5458 path : dist
59+ pattern : wheels-*
60+ merge-multiple : true
5561 - uses : ncipollo/release-action@v1.14.0
5662 with :
5763 artifacts : " dist/*"
0 commit comments