2424      matrix :
2525        config :
2626          - os : [self-hosted, windows-sign-pc] 
27+             id : windows 
2728          - os : ubuntu-latest 
28-           - os : macos-13 
29-           - os : macos-14 
29+             id : linux 
30+           - os : macos-latest 
31+             id : macos-universal 
3032    runs-on : ${{ matrix.config.os }} 
3133    timeout-minutes : 90 
3234
9294            npm run build 
9395
9496name : Upload [GitHub Actions] 
95-         uses : actions/upload-artifact@v3  
97+         uses : actions/upload-artifact@v4  
9698        with :
97-           name : ${{ env.JOB_TRANSFER_ARTIFACT }} 
99+           name : ${{ env.JOB_TRANSFER_ARTIFACT }}-${{ matrix.config.id }}  
98100          path : dist 
99101
100102  artifacts :
@@ -108,26 +110,29 @@ jobs:
108110        artifact :
109111          - path : " *-linux_x64.zip" 
110112            name : Arduino-Lab-for-MicroPython_Linux_X86-64 
111-           -  path :  " *-mac_x64.zip " 
112-              name :  Arduino-Lab-for-MicroPython_macOS_X86-64 
113-           -  path :  " *-mac_arm64.zip " 
114-             name :  Arduino-Lab-for-MicroPython_macOS_arm-64 
113+              id :  linux 
114+           -  path :  " *-mac_universal.zip " 
115+              name :  Arduino-Lab-for-MicroPython_macOS_Universal 
116+             id :  macos-universal 
115117          #  - path: "*Windows_64bit.exe"
116118          #    name: Windows_X86-64_interactive_installer
119+           #    id: windows
117120          #  - path: "*Windows_64bit.msi"
118121          #    name: Windows_X86-64_MSI
122+           #    id: windows
119123          - path : " *-win_x64.zip" 
120124            name : Arduino-Lab-for-MicroPython_Windows_X86-64 
125+             id : windows 
121126
122127    steps :
123128      - name : Download job transfer artifact 
124-         uses : actions/download-artifact@v3  
129+         uses : actions/download-artifact@v4  
125130        with :
126-           name : ${{ env.JOB_TRANSFER_ARTIFACT }} 
131+           name : ${{ env.JOB_TRANSFER_ARTIFACT }}-${{ matrix.artifact.id }}  
127132          path : ${{ env.JOB_TRANSFER_ARTIFACT }} 
128133
129134      - name : Upload tester build artifact 
130-         uses : actions/upload-artifact@v3  
135+         uses : actions/upload-artifact@v4  
131136        with :
132137          name : ${{ matrix.artifact.name }} 
133138          path : ${{ env.JOB_TRANSFER_ARTIFACT }}/${{ matrix.artifact.path }} 
@@ -137,23 +142,25 @@ jobs:
137142    if : github.repository == 'arduino/lab-micropython-editor' && startsWith(github.ref, 'refs/tags/') 
138143    runs-on : ubuntu-latest 
139144    steps :
140-       - name : Download [GitHub Actions]  
141-         uses : actions/download-artifact@v3  
145+       - name : Download all artifacts  
146+         uses : actions/download-artifact@v4  
142147        with :
143-           name : ${{ env.JOB_TRANSFER_ARTIFACT }} 
144-           path : ${{ env.JOB_TRANSFER_ARTIFACT }} 
148+           path : artifacts 
149+           
150+       - name : List artifacts 
151+         run : ls -R artifacts 
145152
146153      - name : Get Tag 
147154        id : tag_name 
148155        run : | 
149-           echo ::set-output name= TAG_NAME:: ${GITHUB_REF#refs/tags/} 
156+           echo " TAG_NAME= ${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT  
150157
151158name : Publish Release [GitHub] 
152159153160        with :
154161          repo_token : ${{ secrets.GITHUB_TOKEN }} 
155162          release_name : ${{ steps.tag_name.outputs.TAG_NAME }} 
156-           file : ${{ env.JOB_TRANSFER_ARTIFACT }} /*
163+           file : artifacts/** /*
157164          tag : ${{ github.ref }} 
158165          file_glob : true 
159166
@@ -167,7 +174,11 @@ jobs:
167174    runs-on : ubuntu-latest 
168175
169176    steps :
170-       - name : Remove unneeded job transfer artifact  
177+       - name : Remove unneeded job transfer artifacts  
171178        uses : geekyeggo/delete-artifact@v2 
172179        with :
173-           name : ${{ env.JOB_TRANSFER_ARTIFACT }} 
180+           name : | 
181+             ${{ env.JOB_TRANSFER_ARTIFACT }}-windows 
182+             ${{ env.JOB_TRANSFER_ARTIFACT }}-linux 
183+             ${{ env.JOB_TRANSFER_ARTIFACT }}-macos-x64 
184+             ${{ env.JOB_TRANSFER_ARTIFACT }}-macos-arm64 
0 commit comments