Skip to content

Commit 18b0b9a

Browse files
authored
Update release CI action versions
actions/upload-artifact@v3 will be deprecated soon. Migrate to v4. Ref: https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
1 parent 706ba05 commit 18b0b9a

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
run: |
3131
file build/*-linux-aarch64
3232
- name: upload
33-
uses: actions/upload-artifact@v3
33+
uses: actions/upload-artifact@v4
3434
with:
35-
name: qjs
35+
name: qjs-linux-aarch64
3636
path: build/*-linux-aarch64
3737
linux-riscv64:
3838
runs-on: ubuntu-20.04
@@ -58,9 +58,9 @@ jobs:
5858
run: |
5959
file build/*-linux-riscv64
6060
- name: upload
61-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
6262
with:
63-
name: qjs
63+
name: qjs-linux-riscv64
6464
path: build/*-linux-riscv64
6565
linux-x86:
6666
runs-on: ubuntu-20.04
@@ -86,9 +86,9 @@ jobs:
8686
run: |
8787
file build/*-linux-x86
8888
- name: upload
89-
uses: actions/upload-artifact@v3
89+
uses: actions/upload-artifact@v4
9090
with:
91-
name: qjs
91+
name: qjs-linux-x86
9292
path: build/*-linux-x86
9393

9494
linux-x86_64:
@@ -115,9 +115,9 @@ jobs:
115115
run: |
116116
file build/*-linux-x86_64
117117
- name: upload
118-
uses: actions/upload-artifact@v3
118+
uses: actions/upload-artifact@v4
119119
with:
120-
name: qjs
120+
name: qjs-linux-x86_64
121121
path: build/*-linux-x86_64
122122

123123
macos:
@@ -136,9 +136,9 @@ jobs:
136136
run: |
137137
lipo -info build/qjs-darwin build/qjsc-darwin
138138
- name: upload
139-
uses: actions/upload-artifact@v3
139+
uses: actions/upload-artifact@v4
140140
with:
141-
name: qjs
141+
name: qjs-darwin
142142
path: build/*-darwin
143143

144144
windows-x86:
@@ -168,9 +168,9 @@ jobs:
168168
run: |
169169
ldd build/qjs-windows-x86.exe build/qjsc-windows-x86.exe
170170
- name: upload
171-
uses: actions/upload-artifact@v3
171+
uses: actions/upload-artifact@v4
172172
with:
173-
name: qjs
173+
name: qjs-windows-x86
174174
path: build/*-windows-x86.exe
175175

176176
windows-x86_64:
@@ -200,9 +200,9 @@ jobs:
200200
run: |
201201
ldd build/qjs-windows-x86_64.exe build/qjsc-windows-x86_64.exe
202202
- name: upload
203-
uses: actions/upload-artifact@v3
203+
uses: actions/upload-artifact@v4
204204
with:
205-
name: qjs
205+
name: qjs-windows-x86_64
206206
path: build/*-windows-x86_64.exe
207207

208208
wasi:
@@ -219,22 +219,24 @@ jobs:
219219
make -C build qjs_exe
220220
mv build/qjs build/qjs-wasi.wasm
221221
- name: upload
222-
uses: actions/upload-artifact@v3
222+
uses: actions/upload-artifact@v4
223223
with:
224-
name: qjs
224+
name: qjs-wasi
225225
path: build/qjs-wasi.wasm
226226

227227
upload-to-release:
228228
needs: [linux-aarch64, linux-riscv64, linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64, wasi]
229229
runs-on: ubuntu-20.04
230230
steps:
231231
- name: get assets
232-
uses: actions/download-artifact@v3
232+
uses: actions/download-artifact@v4
233233
with:
234+
pattern: qjs-*
234235
path: build
236+
merge-multiple: true
237+
- run: ls -R build
235238
- name: release
236239
uses: softprops/action-gh-release@v1
237240
with:
238241
files: |
239-
build/qjs/qjs-*
240-
build/qjs/qjsc-*
242+
build/*

0 commit comments

Comments
 (0)