Skip to content

minor edits

minor edits #7

Workflow file for this run

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 Test
working-directory: ./toys-rs
run: cargo test -- --nocapture
- 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