@@ -161,7 +161,7 @@ jobs:
161161    runs-on : ${{ matrix.config.os-image }} 
162162
163163    steps :
164-     - uses : actions/checkout@v3  
164+     - uses : actions/checkout@v4  
165165      with :
166166        submodules : true 
167167
@@ -202,9 +202,9 @@ jobs:
202202        NUMPY_VERSION : ${{ matrix.config.numpy-version }} 
203203
204204    - name : Store wheels as artifacts 
205-       uses : actions/upload-artifact@v3  
205+       uses : actions/upload-artifact@v4  
206206      with :
207-         name : wheels 
207+         name : wheel-${{ matrix.config.os-name }}-${{ matrix.config.python-arch }}-${{ matrix.config.python-version }} 
208208        path : dist 
209209
210210  test :
@@ -340,14 +340,15 @@ jobs:
340340    needs : build 
341341
342342    steps :
343-     - uses : actions/checkout@v3  
343+     - uses : actions/checkout@v4  
344344      with :
345345        submodules : true 
346346
347347    - name : Download wheels from artifact storage 
348-       uses : actions/download-artifact@v3  
348+       uses : actions/download-artifact@v4  
349349      with :
350-         name : wheels 
350+         pattern : wheel-* 
351+         merge-multiple : true 
351352        path : dist 
352353
353354    - name : Set up QEMU 
@@ -394,17 +395,18 @@ jobs:
394395    needs : build 
395396
396397    steps :
397-     - uses : actions/checkout@v3  
398+     - uses : actions/checkout@v4  
398399
399400    - name : Setup Python 
400401      uses : actions/setup-python@v1 
401402      with :
402403        python-version : ' 3.9' 
403404
404405    - name : Download wheels from artifact storage 
405-       uses : actions/download-artifact@v3  
406+       uses : actions/download-artifact@v4  
406407      with :
407-         name : wheels 
408+         pattern : wheel-* 
409+         merge-multiple : true 
408410        path : dist 
409411
410412    - name : Install from wheel 
@@ -416,10 +418,9 @@ jobs:
416418      run : sphinx-build -b html docs dist-docs 
417419
418420    - name : Store docs HTML as artifact 
419-       uses : actions/upload-artifact@v3 
421+       uses : actions/upload-pages- artifact@v3 
420422      with :
421-         name : docs 
422-         path : dist-docs 
423+         path : dist-docs/ 
423424
424425  publish-wheels :
425426    runs-on : ubuntu-latest 
@@ -430,9 +431,10 @@ jobs:
430431
431432    steps :
432433    - name : Download wheels from artifact storage 
433-       uses : actions/download-artifact@v3  
434+       uses : actions/download-artifact@v4  
434435      with :
435-         name : wheels 
436+         pattern : wheel-* 
437+         merge-multiple : true 
436438        path : dist 
437439
438440    - name : Setup Python 
@@ -449,19 +451,14 @@ jobs:
449451    needs : [publish-wheels] 
450452
451453    permissions :
452-       contents : write 
454+       pages : write       #  to deploy to Pages
455+       id-token : write    #  to verify the deployment originates from an appropriate source
453456
454-     steps :
455-     - name : Download docs HTML from artifact storage 
456-       uses : actions/download-artifact@v1 
457-       with :
458-         name : docs 
459-         path : dist-docs 
457+     environment :
458+       name : github-pages 
459+       url : ${{ steps.deployment.outputs.page_url }} 
460460
461-     #  TODO replace with https://github.com/actions/deploy-pages once out of beta
462-     - name : Upload docs to GitHub Pages 
463-       uses : peaceiris/actions-gh-pages@47a6d63ea8b47b19328e258563aa1fbe224c0a23 
464-       env :
465-         GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
466-         PUBLISH_BRANCH : gh-pages 
467-         PUBLISH_DIR : ./dist-docs 
461+     steps :
462+     - name : Deploy to GitHub Pages 
463+       id : deployment 
464+       uses : actions/deploy-pages@v4 
0 commit comments