Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Merge pull request #260 from artichoke/dependabot/bundler/bundler-dep… #678

Merge pull request #260 from artichoke/dependabot/bundler/bundler-dep…

Merge pull request #260 from artichoke/dependabot/bundler/bundler-dep… #678

Workflow file for this run

---
name: Documentation
"on":
push:
branches:
- trunk
pull_request:
branches:
- trunk
schedule:
- cron: "0 0 * * TUE"
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
permissions: {}
jobs:
rustdoc:
name: Build Rust API docs
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
RUSTDOCFLAGS: -D warnings -D rustdoc::broken_intra_doc_links --cfg docsrs
RUST_BACKTRACE: 1
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install Rust toolchain
uses: artichoke/setup-rust/rustdoc@68e0ebb3b406970de1cc2ca807797c9156a198a7 # v2.0.1
- name: Check docs with no default features
run: cargo doc --workspace --no-default-features
- name: Clean docs
run: cargo clean
- name: Build Documentation
run: cargo doc --workspace
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v3.9.2
if: github.ref == 'refs/heads/trunk'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
publish_branch: gh-pages
user_name: artichoke-ci
user_email: [email protected]
# only have the most recent docs in the `gh-pages` branch
# https://github.com/artichoke/artichoke/issues/1826
force_orphan: true