Lines Matching +full:github +full:- +full:token
26 def wait_for_build_complete_github_actions(session, token, run_url): argument
31 "Content-Type": "application/json",
32 "Authorization": "token {}".format(token),
41 def download_artifacts_github_actions(session, token, run_url): argument
45 "Content-Type": "application/json",
46 "Authorization": "token {}".format(token),
54 "Content-Type": "application/json",
55 "Authorization": "token {}".format(token),
64 "Content-Type": "application/json",
65 "Authorization": "token {}".format(token),
84 def build_github_actions_wheels(token, version): argument
88 "https://api.github.com/repos/pyca/cryptography/actions/workflows/"
89 "wheel-builder.yml/dispatches",
91 "Content-Type": "application/json",
92 "Accept": "application/vnd.github.v3+json",
93 "Authorization": "token {}".format(token),
103 "https://api.github.com/repos/pyca/cryptography/actions/workflows/"
104 "wheel-builder.yml/runs?event=workflow_dispatch"
107 "Content-Type": "application/json",
108 "Authorization": "token {}".format(token),
113 wait_for_build_complete_github_actions(session, token, run_url)
114 return download_artifacts_github_actions(session, token, run_url)
123 github_token = getpass.getpass("Github person access token: ")
125 run("git", "tag", "-s", version, "-m", "{0} release".format(version))
126 run("git", "push", "--tags")
131 packages = glob.glob("dist/cryptography-{0}*".format(version)) + glob.glob(
132 "vectors/dist/cryptography_vectors-{0}*".format(version)
134 run("twine", "upload", "-s", *packages)