Merge pull request #145 from corewa-rs/dependabot/bundler/public/rexm… #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
# Rely on docs.rs to host old versions of docs. This job just publishes latest | |
# docs from develop regardless of stability or version | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup default Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Build crate docs | |
run: cargo doc --verbose --no-deps --workspace | |
env: | |
RUSTDOCFLAGS: | |
"--default-theme=dark" | |
- name: Copy docs to jekyll site source tree | |
run: | | |
cp -R ./target/doc/ ./public/crates | |
- name: Deploy crate docs | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
cname: corewa.rs | |
enable_jekyll: true | |
force_orphan: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |