Skip to content

update to 2021 edition + 2024 style_edition #28

update to 2021 edition + 2024 style_edition

update to 2021 edition + 2024 style_edition #28

Workflow file for this run

on:
push:
branches:
- main
name: Docs
jobs:
docs:
name: Build and deploy documentation
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Update Cargo.lock
run: cargo update
- uses: Swatinem/rust-cache@v2
- name: Build rustdoc
run: cargo doc --all-features
env:
RUSTC_BOOTSTRAP: 1
RUSTDOCFLAGS: --cfg=doc_cfg
- name: Organize
run: |
rm -rf target/gh-pages
mkdir target/gh-pages
mv target/doc target/gh-pages/rustdoc
touch target/gh-pages/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
branch: gh-pages
folder: target/gh-pages
single-commit: true