From 0277cfd0e74f6df769a468181c03c6ccc1145c05 Mon Sep 17 00:00:00 2001 From: Tomaz Zaman Date: Mon, 10 Aug 2026 19:51:46 +0200 Subject: [PATCH 18/77] mono-update: mirror releases on the forge Create a GitHub release for each mono-vX.Y.Z with the sysupgrade and eMMC images plus checksums attached. Repository derived from the mono remote URL; forge failures warn without failing the run. Release cadence stays 1:1 with upstream stable tags by construction. Co-Authored-By: Claude Fable 5 --- scripts/mono-update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/mono-update.sh b/scripts/mono-update.sh index 8b60eb6025..64d9d5fc29 100755 --- a/scripts/mono-update.sh +++ b/scripts/mono-update.sh @@ -104,6 +104,17 @@ if git remote get-url mono >/dev/null 2>&1; then echo "mono-update: pushing $BRANCH and $RELTAG" git push --force-with-lease mono "$BRANCH" git push -f mono "$RELTAG" + + # Mirror the release on the forge with the flashables attached. + # Repo derived from the remote URL; failure is reported, not fatal. + if command -v gh >/dev/null 2>&1; then + REPO=$(git remote get-url mono | sed -E 's#(git@[^:]+:|https://[^/]+/)##; s#\.git$##') + gh release create "$RELTAG" --repo "$REPO" \ + --title "$RELTAG" \ + --notes "Automated release tracking OpenWrt $LATEST." \ + "$OUT"/*-sysupgrade.bin "$OUT"/*-emmc.img.gz "$OUT/sha256sums" \ + || echo "mono-update: WARNING: GitHub release failed" >&2 + fi fi echo "mono-update: done - $RELTAG" -- 2.47.3