Skip to content

Commit

Permalink
also push stable
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jul 2, 2024
1 parent cbadd9e commit cdac69e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ def create_and_push_tag(version: str) -> None:
subprocess.run(["git", "push", "origin", version], check=True)


def merge_and_push_branch(branch: str) -> None:
def merge_and_push_current_branch(branch: str) -> None:
subprocess.run(["git", "merge", branch], check=True)
subprocess.run(["git", "push", "origin", branch], check=True)
subprocess.run(["git", "push", "origin"], check=True)


def main() -> None:
checkout_branch("main")
version = check_version()
create_and_push_tag(version)
checkout_branch("stable")
merge_and_push_branch("main")
merge_and_push_current_branch("main")
checkout_branch("main")


Expand Down

0 comments on commit cdac69e

Please sign in to comment.