diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-04-13 12:48:51 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-04-29 09:36:23 +0200 |
commit | dcb1ca35aea50c2ed418850747b5c588edc1fedd (patch) | |
tree | f43c3bed37b7bb60957a68a63a2b7909a8ad2be8 | |
parent | c6ebf2622379c00bead30fd7c95c6cd9b5ce7ca8 (diff) | |
download | qutebrowser-dcb1ca35aea50c2ed418850747b5c588edc1fedd.tar.gz qutebrowser-dcb1ca35aea50c2ed418850747b5c588edc1fedd.zip |
scripts: Add --no-confirm to build_release
(cherry picked from commit 9aa8740ec95e147116ec7d868ac2f3bb2e8259be)
-rwxr-xr-x | scripts/dev/build_release.py | 8 |
1 files 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: |