aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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