Skip to content

Commit ed260d2

Browse files
authored
Update build-openwrt.yml
1 parent 0cb1ad4 commit ed260d2

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

.github/workflows/build-openwrt.yml

+13-19
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030
UPLOAD_FIRMWARE: true
3131
UPLOAD_COWTRANSFER: false
3232
UPLOAD_WETRANSFER: false
33-
UPLOAD_RELEASE: false
33+
UPLOAD_RELEASE: true
3434
TZ: Asia/Shanghai
3535

3636
jobs:
@@ -136,24 +136,6 @@ jobs:
136136
name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
137137
path: ${{ env.FIRMWARE }}
138138

139-
- name: Upload firmware to cowtransfer
140-
id: cowtransfer
141-
if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
142-
run: |
143-
curl -fsSL git.io/file-transfer | sh
144-
./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log
145-
echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)"
146-
echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")"
147-
148-
- name: Upload firmware to WeTransfer
149-
id: wetransfer
150-
if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled()
151-
run: |
152-
curl -fsSL git.io/file-transfer | sh
153-
./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log
154-
echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)"
155-
echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")"
156-
157139
- name: Generate release tag
158140
id: tag
159141
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
@@ -188,3 +170,15 @@ jobs:
188170
delete_tags: true
189171
env:
190172
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173+
174+
- name: Bark Action
175+
uses: shink/bark-action@v2
176+
with:
177+
# Secret key
178+
key: ${{ secrets.KEY }}
179+
# Bark server hostname
180+
host: ${{ secrets.HOST }}
181+
# Message title
182+
title: OpenWRT
183+
# Message body
184+
body: Openwrt's X86 firmware has been compiled successfully!

0 commit comments

Comments
 (0)