Skip to content

Commit 59dcea5

Browse files
committed
Force always draft for Huawei AppGallery
1 parent 6e540e3 commit 59dcea5

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

‎main.js‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,9 +1641,20 @@ function uploadToHuaweiAppGallery (task, build, onDone, draftOnly) {
16411641
}
16421642

16431643
function uploadToGithub (task, build, onDone, draftOnly) {
1644-
// TODO:
1645-
// 1. Delete previous beta, if it was published
1646-
// 2. Publish WIP/stable release
1644+
const isPrerelease = build.githubTrack !== 'production';
1645+
1646+
// Prerelease:
1647+
// 1. Update last prerelease, if it exists
1648+
// 2. If it doesn't, create new prerelease
1649+
1650+
// Production:
1651+
// 1. Delete last prerelease, if it exists
1652+
// 2. Delete last release draft, if it exists
1653+
// 3. Create new release (draft, if draftOnly is true)
1654+
1655+
// The APKs to be included: universal, huawei, foss.
1656+
// For smaller, architecture-specific builds, force refer to @tgx_log
1657+
16471658
onDone(0);
16481659

16491660
return async () => {
@@ -2425,7 +2436,7 @@ function processPrivateCommand (botId, bot, msg, command, commandArgsRaw) {
24252436
name: 'publishHuaweiAppGallery' + uploadTaskSuffix,
24262437
isAsync: true,
24272438
act: (task, callback) => {
2428-
return uploadToHuaweiAppGallery(task, build, callback, draftOnly);
2439+
return uploadToHuaweiAppGallery(task, build, callback, true);
24292440
}
24302441
})
24312442
}

0 commit comments

Comments
 (0)