mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-25 11:18:30 +00:00
增加自动发布脚本容错
This commit is contained in:
parent
8c4fc1a459
commit
10a5674490
@ -419,7 +419,7 @@ const needPublish = await confirm({
|
||||
default: true,
|
||||
});
|
||||
if (needPublish && !DRYRUN) {
|
||||
|
||||
try {
|
||||
const octokit = new Octokit({
|
||||
auth: env.GITHUB_TOKEN,
|
||||
});
|
||||
@ -461,6 +461,13 @@ if (needPublish && !DRYRUN) {
|
||||
'content-type': 'application/zip',
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
await confirm({
|
||||
message: `自动上传至 Github Release 失败,请手动上传后继续`,
|
||||
default: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
console.log("已发布到 Github Release:", tag);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user