Skip to content

Toys-rs: Test and Publish Doc #2

Toys-rs: Test and Publish Doc

Toys-rs: Test and Publish Doc #2

Workflow file for this run

name: rustdoc
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: 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
force_orphan: true