Skip to content

Commit

Permalink
Upload firmware to WeTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TERX committed Apr 9, 2020
1 parent ac52a90 commit 5290d4c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
UPLOAD_BIN_DIR: false
UPLOAD_FIRMWARE: true
UPLOAD_COWTRANSFER: false
UPLOAD_WETRANSFER: false
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -115,7 +116,13 @@ jobs:
path: ${{ env.FIRMWARE }}

- name: Upload firmware to cowtransfer
if: env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
run: |
curl -fsSL https://git.io/cowtransfer | sh
./cowtransfer-uploader -b 2621440 -s -p 99 -t 3 --hash --silent ${FIRMWARE}
curl -fsSL git.io/file-transfer | sh
./transfer cow --block 2621440 -s -p 99 -t 3 --hash --no-progress ${FIRMWARE}
- 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 ${FIRMWARE}

0 comments on commit 5290d4c

Please sign in to comment.