Skip to content

Commit 997b077

Browse files
KFERMercercoolsnowwolf
authored andcommitted
CI: upload firmwares only (coolsnowwolf#2239)
* CI: only upload firmwares * CI: fix wrong commands
1 parent 5eaee72 commit 997b077

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: .github/workflows/openwrt-ci.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
sed -i 's/^[ \t]*//g' ./.config
196196
make defconfig
197197
198-
- name: Download package source code
198+
- name: Make download
199199
run: |
200200
make download -j8
201201
find dl -size -1024c -exec ls -l {} \;
@@ -206,8 +206,16 @@ jobs:
206206
echo -e "$(nproc) thread build."
207207
make -j$(nproc) V=s
208208
209-
- name : Upload artifact
209+
210+
- name: Assemble artifact
211+
run: |
212+
rm -rf ./artifact/
213+
mkdir -p ./artifact/
214+
find ./bin/targets/ -name "*combined*img*" | xargs -i mv -f {} ./artifact/
215+
find ./bin/targets/ -name "*sysupgrade*bin*" | xargs -i mv -f {} ./artifact/
216+
217+
- name: Upload artifact
210218
uses: actions/upload-artifact@master
211219
with:
212220
name: OpenWrt firmware
213-
path: bin/targets
221+
path: ./artifact/

0 commit comments

Comments
 (0)