@@ -17,21 +17,22 @@ jobs:
1717 name : Build Source Distribution
1818 runs-on : ubuntu-latest
1919 steps :
20- - uses : actions/checkout@v2
20+ - uses : actions/checkout@v4
2121 with :
2222 # setuptools_scm won't work with shallow clone; fetch all history
2323 fetch-depth : 0
2424 - name : Set up Python
25- uses : actions/setup-python@v2
25+ uses : actions/setup-python@v5
2626 with :
2727 python-version : " 3.x"
2828 - name : Build sdist
2929 run : pipx run build --sdist
3030 - name : Check metadata
3131 run : pipx run twine check dist/*.tar.gz
32- - uses : actions/upload-artifact@v2
32+ - uses : actions/upload-artifact@v4
3333 with :
3434 path : dist/*.tar.gz
35+ name : sdist
3536
3637 build_wheels :
3738 name : ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
4243 strategy :
4344 fail-fast : false
4445 matrix :
45- os : [macos-latest, windows-latest]
46+ # macos-13 runners are still x86_64, macos-14 (latest) are arm64; we want to build
47+ # the x86_64 wheel on/for x86_64 macs
48+ os : [macos-13, windows-latest]
4649 arch : [auto64]
4750 build : ["*"]
4851 skip : ["pp*"]
@@ -79,11 +82,11 @@ jobs:
7982 build : " *"
8083 skip : " pp*"
8184 steps :
82- - uses : actions/checkout@v2
85+ - uses : actions/checkout@v4
8386 with :
8487 fetch-depth : 0
8588 - name : Set up Python
86- uses : actions/setup-python@v2
89+ uses : actions/setup-python@v5
8790 with :
8891 python-version : " 3.x"
8992 - name : Install dependencies
9699 CIBW_MANYLINUX_X86_64_IMAGE : ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
97100 CIBW_ARCHS : ${{ matrix.arch }}
98101 CIBW_SKIP : ${{ matrix.skip }}
99- - uses : actions/upload-artifact@v2
102+ - uses : actions/upload-artifact@v4
100103 with :
101104 path : wheelhouse/*.whl
105+ name : wheels-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.type }}
102106
103107 build_arch_wheels :
104108 name : py${{ matrix.python }} on ${{ matrix.arch }}
@@ -122,9 +126,10 @@ jobs:
122126 env :
123127 CIBW_BUILD : cp${{ matrix.python }}-manylinux*
124128 CIBW_ARCHS : ${{ matrix.arch }}
125- - uses : actions/upload-artifact@v2
129+ - uses : actions/upload-artifact@v4
126130 with :
127131 path : wheelhouse/*.whl
132+ name : wheels-${{ matrix.arch }}-${{ matrix.python }}
128133
129134 deploy :
130135 name : Upload if tagged commit
@@ -134,11 +139,11 @@ jobs:
134139 runs-on : ubuntu-latest
135140
136141 steps :
137- - uses : actions/checkout@v2
138- - uses : actions/download-artifact@v2
142+ - uses : actions/checkout@v4
143+ - uses : actions/download-artifact@v4
139144 with :
140- name : artifact
141145 path : dist
146+ merge-multiple : true
142147
143148 - name : Extract release notes from annotated tag message
144149 id : release_notes
@@ -165,13 +170,8 @@ jobs:
165170
166171 - name : Create GitHub release
167172 id : create_release
168- uses : actions/create-release@v1
169- env :
170- # This token is provided by Actions, you do not need to create your own token
171- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
173+ uses : softprops/action-gh-release@v2
172174 with :
173- tag_name : ${{ github.ref }}
174- release_name : ${{ github.ref }}
175175 body_path : " ${{ runner.temp }}/release_notes.md"
176176 draft : false
177177 prerelease : ${{ env.IS_PRERELEASE }}
0 commit comments