From f14addebf43a1e4138b6b9ef68ea1700a97313e5 Mon Sep 17 00:00:00 2001 From: Han Gao Date: Sat, 27 Jan 2024 11:11:02 +0000 Subject: Add tag publish firmware Signed-off-by: Han Gao --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ba95cfa..16749283 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,10 @@ name: thead-u-boot-build on: push: + tags: + - '*' + branches: + - '*' pull_request: workflow_dispatch: schedule: @@ -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 }} -- cgit v1.2.3