@@ -1641,9 +1641,20 @@ function uploadToHuaweiAppGallery (task, build, onDone, draftOnly) {
16411641}
16421642
16431643function 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