-
Notifications
You must be signed in to change notification settings - Fork 459
Expand file tree
/
Copy pathrun_release_preparation.py
More file actions
37 lines (27 loc) · 1.31 KB
/
run_release_preparation.py
File metadata and controls
37 lines (27 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Automation for package release process."""
import sys
import os
PARENT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))
sys.path.insert(0, PARENT_DIR)
from ReleaseAutomation.release_config import ReleaseConfig
from Utils.git_utils import create_branch_execute_commands_and_push
from Utils.verifyReleaseConditions import verifyReleaseConditions
from Utils.commitChangelogAndPackageVersionUpdates import commitChangelogAndPackageVersionUpdates
from Utils.triggerYamatoJobsForReleasePreparation import trigger_release_preparation_jobs
def PrepareNetcodePackageForRelease():
try:
config = ReleaseConfig()
print("\nStep 1: Verifying release conditions...")
verifyReleaseConditions(config)
print("\nStep 2: Creating release branch...")
create_branch_execute_commands_and_push(config)
print("\nStep 3: Triggering Yamato validation jobs...")
trigger_release_preparation_jobs(config)
print("\nStep 4: Committing changelog and version updates...")
commitChangelogAndPackageVersionUpdates(config)
except Exception as e:
print("\n--- ERROR: Netcode release process failed ---", file=sys.stderr)
print(f"Reason: {e}", file=sys.stderr)
sys.exit(1)
if __name__ == "__main__":
PrepareNetcodePackageForRelease()