Skip to content

Update Rust crate tokio to 1.33.0 #1221

Update Rust crate tokio to 1.33.0

Update Rust crate tokio to 1.33.0 #1221

Workflow file for this run

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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # 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@dd5387d253cdfbe87ccdc59f3354dc55efaed4bc # 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