From fdc9e83ce370b14c2a8b860ad30f1f2e4b50f23e Mon Sep 17 00:00:00 2001 From: Maximilian Ammann Date: Thu, 13 Jan 2022 16:02:00 +0100 Subject: [PATCH] Add api documentation generation --- .github/workflows/rust.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5b90e4a4..c692695c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -44,6 +44,14 @@ jobs: run: | rustup component add clippy cargo clippy --all-targets --all-features + - name: API Documentation + run: cargo doc --no-deps --workspace --lib --all-features --document-private-items + - name: Deploy API Documentation + run: | + echo "$SSH_KEY" > id_rsa + chmod 600 id_rsa + ssh -o StrictHostKeyChecking=no -i id_rsa max@maxammann.org 'mkdir -p ~/public_html/mapr/api-docs && find ~/public_html/mapr/api-docs -type f -not -name ".htaccess" -delete' + rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "target/x86_64-unknown-linux-gnu/doc/." max@maxammann.org:~/public_html/mapr/api-docs/ - uses: actions/upload-artifact@v2 with: name: mapr