mirror of
https://github.com/rio-labs/rio.git
synced 2025-12-30 09:49:44 -06:00
remove old build artifacts before uv build
This commit is contained in:
@@ -170,6 +170,12 @@ def make_new_release() -> None:
|
||||
subprocess.run(["git", "push"], check=True)
|
||||
|
||||
# Publish
|
||||
|
||||
# Remove old distributions, otherwise uv in its unending wisdom will try to
|
||||
# upload them again and crash
|
||||
for path in (Path(__file__).absolute().parent.parent / "dist").iterdir():
|
||||
path.unlink()
|
||||
|
||||
subprocess.run(["uv", "build"], check=True)
|
||||
subprocess.run(["uv", "publish"], check=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user