ci(release): hide auto-generated source archives (hide_archive_links)

This commit is contained in:
2026-05-29 20:51:17 +02:00
parent ef1003b4c9
commit d8628016c3
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
RID=$(curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \ RID=$(curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
"$API/repos/$REPO/releases" \ "$API/repos/$REPO/releases" \
-d "$(jq -nc --arg t "$TAG" '{tag_name:$t,name:$t,draft:false,prerelease:false}')" \ -d "$(jq -nc --arg t "$TAG" '{tag_name:$t,name:$t,draft:false,prerelease:false,hide_archive_links:true}')" \
| jq -r '.id') | jq -r '.id')
fi fi
echo "release id: $RID" echo "release id: $RID"