Skip to content

Rust docs

Rust docs #8

Workflow file for this run

name: Rust docs
on: workflow_dispatch
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Commit report
run: |
sudo apt update && sudo apt install -y libfprint-2-dev
cargo doc --no-deps
git clone https://github.com/AlvaroParker/libfprint-docs.git
rm -rf libfprint-docs/*
cp -r target/doc/* libfprint-docs/
cd libfprint-docs
git restore index.html
git config --global user.name 'Parker'
git config --global user.email 'alvaroparker@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.DOC_K }}@github.com/alvaroparker/libfprint-docs
git add .
git commit -m "Automated docs"
git push origin main