@invoke.task(pre=[clean])<EOL>def release(ctx, type_, repo, prebump=PREBUMP, yes=False):
if prebump not in REL_TYPES:<EOL><INDENT>raise ValueError(f"<STR_LIT>")<EOL><DEDENT>prebump = REL_TYPES.index(prebump)<EOL>version = bump_version(ctx, type_, log=True)<EOL>tag_release(version, yes=yes)<EOL>ctx.run(f"<STR_LIT>")<EOL>dist_pattern = f'<STR_LIT>'<EOL>artifacts = list(ROOT.joinpath("<STR_LIT>").glob(dist_pattern))<EOL>filename_display = "<STR_LIT:\n>".join(f"<STR_LIT>" for a in artifacts)<EOL>print(f"<STR_LIT>")<EOL>if not yes:<EOL><INDENT>try:<EOL><INDENT>input("<STR_LIT>")<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>print("<STR_LIT>")<EOL>return<EOL><DEDENT><DEDENT>arg_display = "<STR_LIT:U+0020>".join(f'<STR_LIT>' for n in artifacts)<EOL>ctx.run(f'<STR_LIT>')<EOL>version = _prebump(version, prebump)<EOL>_write_version(version)<EOL>ctx.run(f'<STR_LIT>')<EOL>
Make a new release.