|
23 | 23 | - Special merging strategies for repositories with nightly-testing branches |
24 | 24 | - Safety checks for repositories using bump branches |
25 | 25 | - Custom build and test procedures |
| 26 | + - lean-fro.org: runs scripts/update.sh to regenerate site content |
26 | 27 |
|
27 | 28 | 6. Commits the changes with message "chore: bump toolchain to {version}" |
28 | 29 |
|
@@ -412,20 +413,14 @@ def execute_release_steps(repo, version, config): |
412 | 413 | run_command("lake update", cwd=repo_path, stream_output=True) |
413 | 414 | print(blue("Running `lake update` in examples/hero...")) |
414 | 415 | run_command("lake update", cwd=repo_path / "examples" / "hero", stream_output=True) |
| 416 | + |
| 417 | + # Run scripts/update.sh to regenerate content |
| 418 | + print(blue("Running `scripts/update.sh` to regenerate content...")) |
| 419 | + run_command("scripts/update.sh", cwd=repo_path, stream_output=True) |
| 420 | + print(green("Content regenerated successfully")) |
415 | 421 | elif repo_name == "cslib": |
416 | 422 | print(blue("Updating lakefile.toml...")) |
417 | 423 | run_command(f'perl -pi -e \'s/"v4\\.[0-9]+(\\.[0-9]+)?(-rc[0-9]+)?"/"' + version + '"/g\' lakefile.*', cwd=repo_path) |
418 | | - |
419 | | - print(blue("Updating docs/lakefile.toml...")) |
420 | | - run_command(f'perl -pi -e \'s/"v4\\.[0-9]+(\\.[0-9]+)?(-rc[0-9]+)?"/"' + version + '"/g\' lakefile.*', cwd=repo_path / "docs") |
421 | | - |
422 | | - # Update lean-toolchain in docs |
423 | | - print(blue("Updating docs/lean-toolchain...")) |
424 | | - docs_toolchain = repo_path / "docs" / "lean-toolchain" |
425 | | - with open(docs_toolchain, "w") as f: |
426 | | - f.write(f"leanprover/lean4:{version}\n") |
427 | | - print(green(f"Updated docs/lean-toolchain to leanprover/lean4:{version}")) |
428 | | - |
429 | 424 | run_command("lake update", cwd=repo_path, stream_output=True) |
430 | 425 | elif dependencies: |
431 | 426 | run_command(f'perl -pi -e \'s/"v4\\.[0-9]+(\\.[0-9]+)?(-rc[0-9]+)?"/"' + version + '"/g\' lakefile.*', cwd=repo_path) |
|
0 commit comments