Rc Node doc #17
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: "Toys-rs: Test and Publish Doc" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'toys-rs/**' | |
workflow_dispatch: | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTFLAGS: "-D warnings -W unreachable-pub" | |
RUSTUP_MAX_RETRIES: 10 | |
jobs: | |
rustdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
run: rustup update --no-self-update stable | |
- name: Cargo Check | |
working-directory: ./toys-rs | |
run: cargo check | |
- name: Build Documentation | |
working-directory: ./toys-rs | |
run: cargo doc --all --no-deps | |
- name: Deploy Docs | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.PAGE_SSH_KEY }} | |
external_repository: wsm25/wsm25.github.io | |
publish_branch: main | |
publish_dir: toys-rs/target/doc | |
destination_dir: toys-rs |