fix: replace existing release assets on Gitea (#816)

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen authored and GitHub committed 2026-07-13 08:44:02 -04:00
1 parent f345337888
commit e6c70a53cf
6 files changed
+315 -43

No files matched your search

+8 -1
View File
@@ -52,7 +52,14 @@ export async function run(): Promise<void> {
const currentAssets = rel.assets;
const uploadFile = async (path: string) => {
const json = await upload(config, releaser, uploadUrl(rel.upload_url), path, currentAssets);
const json = await upload(
config,
releaser,
uploadUrl(rel.upload_url),
path,
currentAssets,
rel.id,
);
return json ? (json.id as number) : undefined;
};