Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,13 @@ def create_tag(version: str) -> None:

def push_tag(version: str) -> None:
"""Push a single tag to origin."""
run(["git", "push", "origin", version])
result = run(["git", "push", "origin", f"refs/tags/{version}"], check=False)
if result.returncode != 0:
fatal(
f"Failed to push tag '{version}'.\n"
f" stderr: {result.stderr.strip()}\n"
f" Hint: if a pre-push hook is blocking this, ensure it allows tag pushes while on main."
)


def create_github_release(version: str) -> str:
Expand Down
Loading