Unverified Commit 6379fe0b authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Release script should tag with vX.Y.Z (#14351)

parent 45e81140
...@@ -99,14 +99,14 @@ void main(List<String> args) { ...@@ -99,14 +99,14 @@ void main(List<String> args) {
runGit('fetch upstream', 'fetch upstream'); runGit('fetch upstream', 'fetch upstream');
runGit('reset upstream/master --hard', 'check out master branch'); runGit('reset upstream/master --hard', 'check out master branch');
runGit('tag $version', 'tag the commit with the version label'); runGit('tag v$version', 'tag the commit with the version label');
final String hash = getGitOutput('rev-parse HEAD', 'Get git hash for $version tag'); final String hash = getGitOutput('rev-parse HEAD', 'Get git hash for $version tag');
print('Your tree is ready to publish Flutter $version (${hash.substring(0, 10)}) ' print('Your tree is ready to publish Flutter $version (${hash.substring(0, 10)}) '
'to the "dev" channel.'); 'to the "dev" channel.');
stdout.write('Are you? [yes/no] '); stdout.write('Are you? [yes/no] ');
if (stdin.readLineSync() != 'yes') { if (stdin.readLineSync() != 'yes') {
runGit('tag -d $version', 'remove the tag you did not want to publish'); runGit('tag -d v$version', 'remove the tag you did not want to publish');
print('The dev roll has been aborted.'); print('The dev roll has been aborted.');
exit(0); exit(0);
} }
...@@ -122,7 +122,7 @@ void main(List<String> args) { ...@@ -122,7 +122,7 @@ void main(List<String> args) {
exit(0); exit(0);
} }
runGit('push upstream $version', 'publish the version'); runGit('push upstream v$version', 'publish the version');
runGit('push upstream HEAD:dev', 'land the new version on the "dev" branch'); runGit('push upstream HEAD:dev', 'land the new version on the "dev" branch');
print('Flutter version $version has been rolled to the "dev" channel!'); print('Flutter version $version has been rolled to the "dev" channel!');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment