Rust docs #11
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
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_rs/* libfprint-docs/ | |
cd libfprint-docs | |
git config --global user.name 'Parker' | |
git config --global user.email '[email protected]' | |
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 |