Skip to content

Finish refactoring, 100% test coverage, fixing lots of bugs #2

Finish refactoring, 100% test coverage, fixing lots of bugs

Finish refactoring, 100% test coverage, fixing lots of bugs #2

Workflow file for this run

name: Docs
on:
push:
branches: [ "main" ]
concurrency:
group: deploy
cancel-in-progress: false
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Setup pages
id: pages
uses: actions/configure-pages@v5
- name: Install Tools
uses: cargo-bins/cargo-binstall@v1.13.0
- name: Build docs
run: cargo just doc-gen
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4