aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml11
1 files changed, 11 insertions, 0 deletions
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 }}