Skip to content

Latest commit

 

History

History

README.md

Scripts

English | 中文 | 日本語 | 한국어 | Français | Deutsch | Español | Português | Svenska | Suomi | Nederlands

Run scripts from the repository root.

mdbook build rust-config-tree from the repository root builds the default English manual. Use scripts/publish-pages.sh to build every language for GitHub Pages.

publish-pages.sh

Builds all language-specific mdBook manuals into target/mdbook.

scripts/publish-pages.sh

GitHub Pages is deployed by .github/workflows/pages.yml after changes are pushed to main.

publish-crate.sh

Runs crate release checks and performs a cargo publish --dry-run by default. If package.version already exists on crates.io, the script bumps the patch version automatically.

scripts/publish-crate.sh

Bump a different version component when the current version already exists:

scripts/publish-crate.sh --bump minor
scripts/publish-crate.sh --bump major

Publish to crates.io:

scripts/publish-crate.sh --execute

The script requires a clean git working tree before publishing. Use --no-bump to fail instead of auto-bumping an existing version.

Publish steps are retried for transient crates.io/index network failures. Tune retry behavior with environment variables:

PUBLISH_ATTEMPTS=8 PUBLISH_RETRY_DELAY=15 scripts/publish-crate.sh

release.sh

Runs the full release flow:

  1. Build the mdBook Pages artifact.
  2. Run Rust checks.
  3. Commit and push code.
  4. Wait for the GitHub Pages workflow.
  5. Publish the crate.

Default mode is a dry run:

scripts/release.sh

Execute the full release:

scripts/release.sh --execute --message "Release 0.1.3"

The full release script prepares the crate version before committing, so the version bump is included in the release commit.

Skip waiting for the Pages workflow:

scripts/release.sh --execute --no-wait-pages