From 5470d99c7a08d56d80c615dd5f8d630379c3e826 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Thu, 3 Dec 2020 03:02:04 +0100 Subject: [PATCH] Test workflow --- .github/workflows/test.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c00dc889..8b480bf4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,5 +41,16 @@ jobs: - name: Upload output file uses: actions/upload-artifact@v2 with: - name: Upload firmware - path: build_output/firmware/*.bin \ No newline at end of file + name: hasp-lvgl firmware.zip + path: build_output/firmware/*.bin + - name: Create release and upload firmware + run: | + set -x + assets=() + for asset in build_output/firmware/*.bin; do + assets+=("-a" "$asset") + done + tag_name="${GITHUB_REF##*/}" + hub release create "${assets[@]}" -m "$tag_name" "$tag_name" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file