forked from lgs2007m/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,17 +185,6 @@ jobs: | |
if: (!cancelled()) | ||
run: df -hT | ||
|
||
- name: 整理文件并重命名 | ||
id: organize | ||
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() | ||
run: | | ||
cd openwrt/bin/targets/*/* | ||
rm -rf packages | ||
sudo -E apt-get -qq install rename | ||
rename 's/.*${{ env.DEVICE_NAME }}/${{ env.FILE_DATE }}-${{ env.OPENWRT_NAME }}-${{ env.DEVICE_NAME }}/' * | ||
echo "FIRMWARE=$PWD" >> $GITHUB_ENV | ||
echo "status=success" >> $GITHUB_OUTPUT | ||
- name: Set up SSH | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
|
@@ -207,6 +196,18 @@ jobs: | |
make package/luci-app-design-config/compile V=99 | ||
scp -P 61041 -r [email protected]:/path/to/openwrt/bin/packages /tmp | ||
continue-on-error: true | ||
|
||
- name: 整理文件并重命名 | ||
id: organize | ||
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() | ||
run: | | ||
cd openwrt/bin/targets/*/* | ||
rm -rf packages | ||
sudo -E apt-get -qq install rename | ||
rename 's/.*${{ env.DEVICE_NAME }}/${{ env.FILE_DATE }}-${{ env.OPENWRT_NAME }}-${{ env.DEVICE_NAME }}/' * | ||
echo "FIRMWARE=$PWD" >> $GITHUB_ENV | ||
echo "status=success" >> $GITHUB_OUTPUT | ||
- name: 打包上传固件到Actions Artifacts | ||
uses: actions/upload-artifact@main | ||
|