aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-06-03 00:38:09 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-06-03 00:38:09 +0200
commitd2e2063cb2b5a82709e9c5188602a9fc0f7dadbd (patch)
tree38006ac0e499ce7de38114fba5d4b6c49dd055cb
parent50bd6e37219fd6dabee4f661ed3530c0331c7b06 (diff)
downloadmini-kvm-rs-d2e2063cb2b5a82709e9c5188602a9fc0f7dadbd.tar.gz
mini-kvm-rs-d2e2063cb2b5a82709e9c5188602a9fc0f7dadbd.zip
gh action: add steps to generate and upload doc to gh pages
-rw-r--r--.github/workflows/rust.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 72180e2..c5afa2d 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -22,3 +22,12 @@ jobs:
cargo build --verbose --examples
- name: Run tests
run: cargo test --verbose
+ - name: Generate doc
+ run: |
+ cargo doc --no-deps
+ echo "<meta http-equiv=\"Refresh\" content=\"0; url='kvm_rs/index.html'\"/>" > target/doc/index.html
+ - name: Upload doc to gh pages
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./target/doc