language: rust sudo: false cache: - cargo rust: - stable before_script: - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update) - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook) - cargo install-update -a script: - find ./src -type f \( ! -iname SUMMARY.md \) -exec sed -i '/\[.*]([^\(]*)/ { s/(\//(\/Plore-Tabletop-Game\//g; }' {} \; # Makes deployed urls work with githubpages (under the name Plore-Tabletop-Game) - mdbook build #&& mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook - cp fonts/* book/fonts branches: only: - master git: submodules: false deploy: provider: pages skip-cleanup: true github-token: $GITHUB_TOKEN local-dir: book # In case of custom book path: path/to/mybook/book keep-history: false on: branch: master