From 75beacd9de98f5bb113e2de6b00d6cdaf1ff7500 Mon Sep 17 00:00:00 2001 From: paradajz <2544094+paradajz@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:21:24 +0000 Subject: [PATCH] ci: upload firmware artifacts --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/release.yml | 13 +++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff8ee7e81..e2e8210c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,13 @@ jobs: runCmd: | git fetch --tags ./scripts/build_targets.sh --type=build + ./scripts/copy_release_binaries.sh --build-dir=build --copy-dir=release ./scripts/build_targets.sh --type=test + - name: Upload firmware artifacts + uses: actions/upload-artifact@v4 + with: + name: binaries + path: release/* - name: Save ccache uses: actions/cache/save@v4 if: always() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index baa3f8386..1d99a5632 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,5 +41,14 @@ jobs: git fetch --tags ./scripts/build_targets.sh --type=build ./scripts/copy_release_binaries.sh --build-dir=build --copy-dir=release - tag_name="${GITHUB_REF##*/}" - hub release edit $(find ./release -type f -printf "-a %p ") -m "" "$tag_name" \ No newline at end of file + - name: Upload firmware artifacts + uses: actions/upload-artifact@v4 + with: + name: binaries + path: release/* + - + name: Upload binaries to Github Release + uses: ncipollo/release-action@v1 + with: + artifacts: release/* + allowUpdates: true