summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-08-16 19:20:27 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-08-17 12:39:00 +0200
commita59bf7bc5bc9ec863fd359be453e326c727008ce (patch)
treec4d6581c08b0df9e3622f4ecdc399f2149c59fe3 /scripts
parent0e07d3b7b600ae6d1757e6f5fd22b104ec30aacb (diff)
downloadqutebrowser-a59bf7bc5bc9ec863fd359be453e326c727008ce.tar.gz
qutebrowser-a59bf7bc5bc9ec863fd359be453e326c727008ce.zip
ci: Set twine PyPI token
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/build_release.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index acbe31507..fe2ec16c3 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -539,6 +539,9 @@ def read_github_token(
if arg_token is not None:
return arg_token
+ if "GITHUB_TOKEN" in os.environ:
+ return os.environ["GITHUB_TOKEN"]
+
token_path = pathlib.Path.home() / '.gh_token'
if not token_path.exists():
if optional: