|
30 | 30 | UPLOAD_FIRMWARE: true
|
31 | 31 | UPLOAD_COWTRANSFER: false
|
32 | 32 | UPLOAD_WETRANSFER: false
|
33 |
| - UPLOAD_RELEASE: false |
| 33 | + UPLOAD_RELEASE: true |
34 | 34 | TZ: Asia/Shanghai
|
35 | 35 |
|
36 | 36 | jobs:
|
@@ -136,24 +136,6 @@ jobs:
|
136 | 136 | name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
|
137 | 137 | path: ${{ env.FIRMWARE }}
|
138 | 138 |
|
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 |
| -
|
157 | 139 | - name: Generate release tag
|
158 | 140 | id: tag
|
159 | 141 | if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
@@ -188,3 +170,15 @@ jobs:
|
188 | 170 | delete_tags: true
|
189 | 171 | env:
|
190 | 172 | 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