Update Rust crate clap to 4.4.18 #1453
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
- main | |
name: Docs | |
jobs: | |
docs: | |
name: Build and deploy documentation | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- name: Install static-sitemap-cli | |
run: npm install static-sitemap-cli | |
- name: Build rustdoc | |
run: cargo doc --all-features --workspace | |
- name: Install mdbook | |
uses: taiki-e/install-action@4f8e32492b3baed061f7836e6a4d40eb19e49b71 # v2 | |
with: | |
tool: [email protected] | |
- name: Run mdbook | |
run: | | |
cd site | |
mdbook build | |
- name: Generate sitemap | |
run: | | |
cd site/output | |
npx sscli --base https://nexte.st | |
- name: Organize | |
run: | | |
rm -rf target/gh-pages | |
mv site/output target/gh-pages | |
mv target/doc target/gh-pages/rustdoc | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: gh-pages | |
folder: target/gh-pages | |
single-commit: true |