Automatically deploy mdBook documentation into Github pages.
Requires Rust nightly, run using:
cargo run --release
The following values need to be configured as environment variables (or in a .env
file), with defaults shown.
TMP_DIR = tmp
GIT_AUTHOR
GIT_EMAIL
SSH_KEY_PATH
SRC_URL
SRC_BRANCH = master
DST_URL
DST_BRANCH = gh-pages
The webhook server can be configured with a Rocket.toml
file:
[development]
address = "0.0.0.0"
port = 8081
Probably not, there are more mature solutions available (e.g. https://github.com/drdoctr/doctr) that allow a much greater level of configuration, this mainly exists to experiment with the Rust git2 bindings and mdBook.