Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/promote-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
Loading