add docs build 'deploy-docs.sh' (#22)

This commit is contained in:
Harshavardhana 2022-09-04 23:53:54 -07:00 committed by GitHub
parent c5f8f61bdf
commit 4da529a13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
deploy-docs.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
cargo doc --all --no-deps
rm -rf ./docs
echo "<meta http-equiv=\"refresh\" content=\"0; url=minio\">" > target/doc/index.html
git checkout gh-pages
git rm --quiet -r --force --ignore-unmatch ./*
cp -a target/doc ./docs
git add docs/
echo "minio-rs.min.io" > CNAME
git add CNAME
git commit --quiet --all -m "update rustdoc htmls"
git push -u origin gh-pages