Skip to content

Commit 30b8f3b

Browse files
authored
Update build-x86_64-uola-openwrt.yml
1 parent 4a31bab commit 30b8f3b

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

.github/workflows/build-x86_64-uola-openwrt.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,6 @@ jobs:
186186
SUBTARGET=$(basename `pwd`)
187187
echo "::set-env name=SUBTARGET::$SUBTARGET"
188188
echo "::set-env name=FIRMWARE::$PWD"
189-
190-
# 上传到分支
191-
- name: 上传到分支
192-
if: steps.compile.outputs.status == 'success' && env.UPLOAD_BRANCH == 'true' && !cancelled()
193-
env:
194-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
195-
run: |
196-
cd openwrt/bin
197-
git init
198-
git config user.name $GITHUB_USER_NAME
199-
git config user.email $GITHUB_USER_EMAIL
200-
git add .
201-
git commit -m "Update OpenWrt_"$BRANCH
202-
git push --force --quiet https://${{ secrets.RELEASE_TOKEN }}@$GITHUB HEAD:OpenWrt-$BRANCH
203189
204190
# 整理文件
205191
- name: 整理文件
@@ -228,44 +214,6 @@ jobs:
228214
with:
229215
name: ${{ env.BUILD_USER }}-${{ env.DATE }}-${{ env.RELEASE_TAG }}
230216
path: ${{ env.FIRMWARE }}
231-
232-
# 上传固件到奶牛快传
233-
- name: 上传固件到奶牛快传
234-
if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
235-
run: |
236-
curl -fsSL git.io/file-transfer | sh
237-
./transfer cow --block 2621440 -s -p 99 -t 3 --hash --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log
238-
echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)"
239-
echo "::set-env name=COWTRANSFER_URL::$(cat cowtransfer.log | grep https | cut -f3 -d" ")"
240-
241-
# 上传固件到WeTransfer
242-
- name: 上传固件到WeTransfer
243-
if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
244-
run: |
245-
curl -fsSL git.io/file-transfer | sh
246-
./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log
247-
echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)"
248-
echo "::set-env name=WETRANSFER_URL::$(cat wetransfer.log | grep https | cut -f3 -d" ")"
249-
250-
# 上传文件到Tmp.Link
251-
- name: 上传文件到Tmp.Link
252-
if: steps.compile.outputs.status == 'success' && env.UPLOAD_TMP_LINK == 'true' && !cancelled()
253-
run: |
254-
cd openwrt/bin/targets/*/*
255-
find . -maxdepth 1 ! -name "$DOWNLOAD_URL_FILE" -type f -exec echo {} >> $DOWNLOAD_URL_FILE \; -exec curl -k -F "file=@{}" -F "token=${{ secrets.TMP_LINK_TOKEN }}" -F "model=3" -X POST "https://connect.tmp.link/api_v2/cli_uploader" -s >> $DOWNLOAD_URL_FILE \;
256-
sed -i 's/\.\///g' $DOWNLOAD_URL_FILE
257-
sed -i '/^Upload.*/d' $DOWNLOAD_URL_FILE
258-
sed -i '/^Thank.*/d' $DOWNLOAD_URL_FILE
259-
sed -i '/Download/G' $DOWNLOAD_URL_FILE
260-
261-
# 上传下载地址文件
262-
- name: 上传下载地址文件
263-
uses: actions/upload-artifact@master
264-
if: steps.compile.outputs.status == 'success' && env.UPLOAD_TMP_LINK == 'true' && !cancelled()
265-
with:
266-
name: ${{ env.DOWNLOAD_URL_FILE }}
267-
path: openwrt/bin/targets/${{ env.TARGET }}/${{ env.SUBTARGET }}/${{ env.DOWNLOAD_URL_FILE }}
268-
269217

270218
# 发行固件
271219
- name: 发行固件

0 commit comments

Comments
 (0)