diff --git a/.github/workflows/build-openwrt.yml b/.github/workflows/build-openwrt.yml index bf661ed1..5359288f 100644 --- a/.github/workflows/build-openwrt.yml +++ b/.github/workflows/build-openwrt.yml @@ -38,8 +38,8 @@ env: SSH_ACTIONS: false UPLOAD_BIN_DIR: false UPLOAD_FIRMWARE: true - UPLOAD_COWTRANSFER: true - UPLOAD_WETRANSFER: true + UPLOAD_COWTRANSFER: false + UPLOAD_WETRANSFER: false UPLOAD_RELEASE: true TZ: Asia/Shanghai @@ -130,21 +130,25 @@ jobs: with: name: OpenWrt_firmware_${{ steps.compile.outputs.DEVICE_NAME }}_${{ steps.compile.outputs.FILE_DATE }} path: ${{ steps.organize.outputs.FIRMWARE }} - - #- name: Upload firmware to cowtransfer - # if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() - # run: | - # curl -fsSL git.io/file-transfer | sh - # ./transfer cow --block 2621440 -s -p 64 --no-progress ${{ steps.organize.outputs.FIRMWARE }} | tee cowtransfer.log - # echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" - - #- name: Upload firmware to WeTransfer - # if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() - # run: | - # curl -fsSL git.io/file-transfer | sh - # ./transfer wet -s -p 16 --no-progress ${{ steps.organize.outputs.FIRMWARE }} | tee wetransfer.log - # echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" - + + - name: Upload firmware to cowtransfer + id: cowtransfer + if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() + run: | + curl -fsSL git.io/file-transfer | sh + ./transfer cow --block 2621440 -s -p 64 --no-progress ${{ steps.organize.outputs.FIRMWARE }} 2>&1 | tee cowtransfer.log + echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" + echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")" + + - name: Upload firmware to WeTransfer + id: wetransfer + if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() + run: | + curl -fsSL git.io/file-transfer | sh + ./transfer wet -s -p 16 --no-progress ${{ steps.organize.outputs.FIRMWARE }} 2>&1 | tee wetransfer.log + echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" + echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")" + - name: Generate release tag id: tag if: env.UPLOAD_RELEASE == 'true' && !cancelled()