Tools: Prevent multiple commits on Android releases

pull/5291/head
Laurent Cozic 2021-08-10 18:02:20 +01:00
parent 6ed186a471
commit d8626919e0
1 changed files with 9 additions and 5 deletions

View File

@ -174,11 +174,15 @@ async function main() {
}
await execCommandVerbose('git', ['pull']);
await execCommandVerbose('git', ['add', '-A']);
await execCommandVerbose('git', ['commit', '-m', `Android release v${version}`]);
await execCommandVerbose('git', ['tag', tagName]);
await execCommandVerbose('git', ['push']);
await execCommandVerbose('git', ['push', '--tags']);
// NOT TESTED: These commands should not be necessary anymore since they are
// done in completeReleaseWithChangelog()
// await execCommandVerbose('git', ['add', '-A']);
// await execCommandVerbose('git', ['commit', '-m', `Android release v${version}`]);
// await execCommandVerbose('git', ['tag', tagName]);
// await execCommandVerbose('git', ['push']);
// await execCommandVerbose('git', ['push', '--tags']);
console.info(`Creating GitHub release ${tagName}...`);