From e3de853c58cbad0054981352c27eacdedb0ff89d Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Fri, 31 Jul 2015 10:49:46 -0700 Subject: [PATCH] Don't upload things again in stage two --- engine/src/flutter/sky/tools/big_red_button.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/sky/tools/big_red_button.py b/engine/src/flutter/sky/tools/big_red_button.py index dbd28aff87..93553ffb25 100755 --- a/engine/src/flutter/sky/tools/big_red_button.py +++ b/engine/src/flutter/sky/tools/big_red_button.py @@ -116,14 +116,17 @@ 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 not 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']) if args.stage_two: run(sky_package_root, [pub_path, 'publish', '--force']) + else: + run(sky_engine_package_root, [pub_path, 'publish', '--force']) + run(sky_services_package_root, [pub_path, 'publish', '--force']) + if __name__ == '__main__':