diff --git a/engine/src/flutter/sky/tools/big_red_button.py b/engine/src/flutter/sky/tools/big_red_button.py index 1a84759af1..e1fdc93c54 100755 --- a/engine/src/flutter/sky/tools/big_red_button.py +++ b/engine/src/flutter/sky/tools/big_red_button.py @@ -76,6 +76,8 @@ def upload_artifacts(dist_root, config, commit_hash): def main(): parser = argparse.ArgumentParser(description='Deploy!') parser.add_argument('sky_engine_root', help='Path to sky_engine/src') + parser.add_argument('--stage-two', action='store_true', default=False, + help='Publish the sky package and upload the binaries') parser.add_argument('--dry-run', action='store_true', default=False, help='Just print commands w/o executing.') parser.add_argument('--no-pub-publish', dest='publish', @@ -114,13 +116,15 @@ def main(): run(sky_engine_root, ['cp', 'AUTHORS', 'LICENSE', sky_package_root]) - upload_artifacts(android_dist_root, 'android-arm', commit_hash) - upload_artifacts(linux_dist_root, 'linux-x64', commit_hash) + if args.stage_two: + upload_artifacts(android_dist_root, 'android-arm', commit_hash) + upload_artifacts(linux_dist_root, 'linux-x64', commit_hash) if args.publish: run(sky_engine_package_root, [pub_path, 'publish', '--force']) run(sky_services_package_root, [pub_path, 'publish', '--force']) - run(sky_package_root, [pub_path, 'publish', '--force']) + if args.stage_two: + run(sky_package_root, [pub_path, 'publish', '--force']) if __name__ == '__main__':