Skip to content

Commit

Permalink
Add tag publish firmware
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Jan 27, 2024
1 parent 9d7cb33 commit f14adde
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: thead-u-boot-build

on:
push:
tags:
- '*'
branches:
- '*'
pull_request:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -124,3 +128,10 @@ jobs:
name: thead-u-uboot-${{ matrix.name }}
path: output/*.bin
retention-days: 30

- name: 'Create release by tag'
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.name == 'thead-gcc' }}
with:
files: output/*.bin
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f14adde

Please sign in to comment.