Skip to content

Test docs

Test docs #2

Workflow file for this run

name: Generate and deploy crate docs
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
docs:
name: Generate crate documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: nightly
override: true
- name: Generate documentation
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
run: |
cargo +nightly doc --workspace --no-deps
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
destination_dir: docs