Delegate Promptkit releases to ReleaseKit

This commit is contained in:
2026-10-08 16:40:34 +00:00
parent 05082c6fdf
commit b1866946d1
8 changed files with 136 additions and 302 deletions

View File

@@ -179,6 +179,7 @@ def prepare_repository(repository, remote, environment, module_bytes, version):
scripts = repository / "scripts"
scripts.mkdir(parents=True, exist_ok=True)
shutil.copy2(REPOSITORY_ROOT / "scripts/release.sh", scripts / "release.sh")
shutil.copy2(REPOSITORY_ROOT / "scripts/releasekit.sh", scripts / "releasekit.sh")
write_file(
scripts / "check-examples.py",
@@ -215,9 +216,9 @@ def prepare_repository(repository, remote, environment, module_bytes, version):
def verify_publication(repository, remote, temporary_root, environment, module_bytes, selected_go):
bootstrap = repository / "scripts/releasekit.sh"
publication = repository / "scripts/release.sh"
run(
[str(bootstrap), "publish", RELEASE_VERSION],
[str(publication), RELEASE_VERSION],
cwd=temporary_root,
environment=environment,
)
@@ -324,7 +325,7 @@ def verify_validation_failure(
)
result = execute(
[str(repository / "scripts/releasekit.sh"), "publish", FAILED_RELEASE_VERSION],
[str(repository / "scripts/release.sh"), FAILED_RELEASE_VERSION],
cwd=temporary_root,
environment=scenario_environment,
)