Hide generated release archives

This commit is contained in:
adminroot committed 2026-08-25 11:42:14 +00:00
1 parent e061d374ba
commit b534c13b40
1 file changed
+9
+9
View File
@@ -137,6 +137,7 @@ jobs:
body: `Automated release ${tag}`,
draft: false,
prerelease: tag.includes('-'),
hide_archive_links: true,
}));
NODE
)"
@@ -155,6 +156,14 @@ jobs:
;;
esac
curl --silent --show-error --fail \
--request PATCH \
--header "Authorization: token ${token}" \
--header 'Content-Type: application/json' \
--data-binary '{"hide_archive_links":true}' \
"${api}/repos/${repository}/releases/${release_id}" \
>/dev/null
assets_json="$(mktemp)"
curl --silent --show-error --fail --output "$assets_json" \
--header "Authorization: token ${token}" \