From 997b077d2413613c923df13bf53174336ded8d33 Mon Sep 17 00:00:00 2001 From: ZhenYu Date: Wed, 4 Dec 2019 03:53:51 -0600 Subject: [PATCH] CI: upload firmwares only (#2239) * CI: only upload firmwares * CI: fix wrong commands --- .github/workflows/openwrt-ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/openwrt-ci.yml b/.github/workflows/openwrt-ci.yml index 2345f4df6..75229053f 100644 --- a/.github/workflows/openwrt-ci.yml +++ b/.github/workflows/openwrt-ci.yml @@ -195,7 +195,7 @@ jobs: sed -i 's/^[ \t]*//g' ./.config make defconfig - - name: Download package source code + - name: Make download run: | make download -j8 find dl -size -1024c -exec ls -l {} \; @@ -206,8 +206,16 @@ jobs: echo -e "$(nproc) thread build." make -j$(nproc) V=s - - name : Upload artifact + + - name: Assemble artifact + run: | + rm -rf ./artifact/ + mkdir -p ./artifact/ + find ./bin/targets/ -name "*combined*img*" | xargs -i mv -f {} ./artifact/ + find ./bin/targets/ -name "*sysupgrade*bin*" | xargs -i mv -f {} ./artifact/ + + - name: Upload artifact uses: actions/upload-artifact@master with: name: OpenWrt firmware - path: bin/targets + path: ./artifact/