Skip to content

chore: fix typo in comment #26

chore: fix typo in comment

chore: fix typo in comment #26

Workflow file for this run

# Publishing rustdoc documentation on GitHub Pages, inspired by:
# https://www.reddit.com/r/rust/comments/195ao81/publishing_documentation_as_github_page/
# which linked to:
# https://github.com/dnaka91/advent-of-code/blob/de37024ba3b385694e14f79c849370c0f605f054/.github/workflows/docs.yml
name: Docs
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: deploy
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Configure cache
uses: Swatinem/rust-cache@v2
- name: Setup pages
id: pages
uses: actions/configure-pages@v4
- name: Clean docs folder
run: cargo clean --doc
- name: Build docs
run: cargo doc --document-private-items --no-deps --features multiple-windows-versions
- name: Add redirect
run: echo '<meta http-equiv="refresh" content="0;url=winvd/index.html">' > target/doc/index.html
- name: Remove lock file
run: rm target/doc/.lock
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
deploy:
name: Deploy
runs-on: windows-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4