You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.add_argument("--token", default=None, help="Pass in your GitHub personal access token (will also use from GH_ACCESS_TOKEN env variable")
20
+
parser.add_argument("--branch", default="main", help="Quartz branch to use for the artifact")
21
+
parser.add_argument("--fpga", help="Name of FPGA project to release")
22
+
parser.add_argument("--hubris", default=None, help="Path to hubris git checkout as target for copying files. Will skip if None")
23
+
parser.add_argument("--skip-gh", default=False, action="store_true", help="Skip doing GH release. Note that doing this still generates release metadata that just will be wrong")
24
+
parser.add_argument("--zip", default=None, help="Path to zip file to use instead of downloading from GitHub")
25
+
26
+
hubris_ignore= [".html", ".log", ".rpt"]
27
+
28
+
defmain():
29
+
"""
30
+
Main function to process the command line arguments and run the release process.
31
+
"""
32
+
args=parser.parse_args()
33
+
ifargs.fpgaisNone:
34
+
print("Please specify an FPGA project with --fpga")
35
+
sys.exit(1)
36
+
37
+
ifargs.tokenisnotNone:
38
+
token=args.token
39
+
else:
40
+
token=os.getenv("GITHUB_TOKEN", None)
41
+
iftokenisNone:
42
+
print("the --token option or an env_variable GITHUB_TOKEN is required to use this tool")
0 commit comments