From 8da162f97d4e6073e1b38bbed2cfd1192af970e4 Mon Sep 17 00:00:00 2001 From: Paul Swenson <1937248+pdscomp@users.noreply.github.com> Date: Fri, 23 Oct 2026 19:20:05 -0400 Subject: [PATCH] fix: upload firmware assets as update.swu --- .github/workflows/promote-beta.yaml | 5 ++++- .github/workflows/release.yaml | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/promote-beta.yaml b/.github/workflows/promote-beta.yaml index 2918485..0dd1d3e 100644 --- a/.github/workflows/promote-beta.yaml +++ b/.github/workflows/promote-beta.yaml @@ -60,4 +60,7 @@ jobs: echo "No firmware .swu artifact was downloaded" exit 1 fi - gh release upload "${VERSION}" "$swu_path" manifest.json patches.md --clobber + if [ "$swu_path" != "./update.swu" ] && [ "$swu_path" != "update.swu" ]; then + mv "$swu_path" update.swu + fi + gh release upload "${VERSION}" update.swu manifest.json patches.md --clobber diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 360b687..75319e9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,19 @@ jobs: with: path: artifacts + - name: Name firmware asset update.swu + run: | + swu="$(find artifacts -type f -name '*.swu' -print -quit)" + if [ -z "$swu" ]; then + echo "no .swu found in build artifacts" >&2 + exit 1 + fi + dest="$(dirname "$swu")/update.swu" + if [ "$swu" != "$dest" ]; then + mv "$swu" "$dest" + fi + echo "firmware asset: $dest" + - name: Find patch summary id: patch_summary run: |