Skip to content

Commit 306c24e

Browse files
committed
Add Action setting for build and deploy cargo doc
1 parent c864270 commit 306c24e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/rust.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,17 @@ jobs:
3636
cargo tarpaulin --verbose --features=intel-mkl --out Xml --manifest-path=ndarray-linalg/Cargo.toml
3737
- name: Upload to codecov.io
3838
uses: codecov/codecov-action@v1
39+
40+
doc:
41+
runs-on: ubuntu-18.04
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Generate code coverage
45+
run: |
46+
RUSTDOCFLAGS="--html-in-header katex-header.html" cargo doc --no-deps
47+
mv target/doc public
48+
- name: Deploy GitHub Pages
49+
uses: peaceiris/actions-gh-pages@v3
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: ./public

0 commit comments

Comments
 (0)