From dcb1ca35aea50c2ed418850747b5c588edc1fedd Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 13 Apr 2021 12:48:51 +0200 Subject: [PATCH] scripts: Add --no-confirm to build_release (cherry picked from commit 9aa8740ec95e147116ec7d868ac2f3bb2e8259be) --- scripts/dev/build_release.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 5659a0fb0..be6492358 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -607,6 +607,8 @@ def main(): nargs='?') parser.add_argument('--upload', action='store_true', required=False, help="Toggle to upload the release to GitHub.") + parser.add_argument('--no-confirm', action='store_true', required=False, + help="Skip confirmation before uploading.") parser.add_argument('--skip-packaging', action='store_true', required=False, help="Skip Windows installer/zip generation.") parser.add_argument('--32bit', action='store_true', required=False, @@ -655,8 +657,10 @@ def main(): if args.upload: version_tag = "v" + qutebrowser.__version__ - utils.print_title("Press enter to release {}...".format(version_tag)) - input() + + if not args.no_confirm: + utils.print_title("Press enter to release {}...".format(version_tag)) + input() github_upload(artifacts, version_tag, gh_token=gh_token) if upload_to_pypi: