5050 - uses : actions/checkout@v4
5151 - uses : actions/setup-python@v5
5252 with :
53- python-version : ' 3.10'
53+ python-version : " 3.10"
5454 architecture : x64
5555 - name : Build Wheels
5656 uses : messense/maturin-action@v1
6464 pip install gstools-core --no-index --find-links dist --force-reinstall --no-deps
6565 python -c "import gstools_core"
6666 - name : Upload Wheels Artifacts
67- uses : actions/upload-artifact@v3
67+ uses : actions/upload-artifact@v4
6868 with :
69+ name : dist-wheel-linux-${{ matrix.target }}
6970 path : dist
7071
7172 windows :
7879 - uses : actions/checkout@v4
7980 - uses : actions/setup-python@v5
8081 with :
81- python-version : ' 3.10'
82+ python-version : " 3.10"
8283 architecture : ${{ matrix.target }}
8384 - name : Install Rust Toolchain
8485 uses : actions-rs/toolchain@v1
@@ -96,29 +97,30 @@ jobs:
9697 pip install gstools-core --no-index --find-links dist --force-reinstall --no-deps
9798 python -c "import gstools_core"
9899 - name : Upload Wheels Artifacts
99- uses : actions/upload-artifact@v3
100+ uses : actions/upload-artifact@v4
100101 with :
102+ name : dist-wheel-win-${{ matrix.target }}
101103 path : dist
102104
103105 macos :
104106 needs : [check]
105107 runs-on : macos-latest
106108 strategy :
107109 matrix :
108- os : [macos-13, macos-14]
110+ target : [macos-13, macos-14]
109111 steps :
110112 - uses : actions/checkout@v4
111113 - uses : actions/setup-python@v5
112114 with :
113- python-version : ' 3.10'
115+ python-version : " 3.10"
114116 - name : Install Rust toolchain
115117 uses : actions-rs/toolchain@v1
116118 with :
117119 profile : minimal
118120 toolchain : stable
119121 default : true
120122 - name : Build wheels - x86_64
121- if : matrix.os == 'macos-13'
123+ if : matrix.target == 'macos-13'
122124 uses : messense/maturin-action@v1
123125 with :
124126 target : x86_64
@@ -141,8 +143,9 @@ jobs:
141143 pip install gstools-core --no-index --find-links dist --force-reinstall --no-deps
142144 python -c "import gstools_core"
143145 - name : Upload wheels
144- uses : actions/upload-artifact@v3
146+ uses : actions/upload-artifact@v4
145147 with :
148+ name : dist-wheel-macos-${{ matrix.target }}
146149 path : dist
147150
148151 sdist :
@@ -152,7 +155,7 @@ jobs:
152155 - uses : actions/checkout@v4
153156 - uses : actions/setup-python@v5
154157 with :
155- python-version : ' 3.10'
158+ python-version : " 3.10"
156159 architecture : x64
157160 - name : Install dependencies
158161 run : |
@@ -162,18 +165,20 @@ jobs:
162165 run : |
163166 # PEP 517 package builder from pypa
164167 python -m build --sdist
165- - uses : actions/upload-artifact@v3
168+ - uses : actions/upload-artifact@v4
166169 with :
170+ name : dist-sdist
167171 path : dist
168172
169173 publish_on_pypi :
170174 name : Publish
171175 needs : [linux, windows, macos, sdist]
172176 runs-on : ubuntu-latest
173177 steps :
174- - uses : actions/download-artifact@v3
178+ - uses : actions/download-artifact@v4
175179 with :
176- name : artifact
180+ pattern : dist-*
181+ merge-multiple : true
177182 path : dist
178183 - name : Publish on TestPyPI
179184 if : github.ref == 'refs/heads/main'
0 commit comments