Skip to content

Commit 1c82d9c

Browse files
committed
Make CI build API doc
1 parent d12a8e7 commit 1c82d9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/contrib.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
mkdir mdbook
2222
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.9/mdbook-v0.4.9-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
2323
echo `pwd`/mdbook >> $GITHUB_PATH
24+
- name: Build API doc
25+
run: |
26+
cargo doc --document-private-items --no-deps
2427
- name: Deploy docs
2528
run: |
2629
cd src/doc/contrib
@@ -33,6 +36,8 @@ jobs:
3336
git update-ref -d refs/heads/gh-pages
3437
rm -rf contrib
3538
mv ../book contrib
39+
# Move rustdoc under contrib/
40+
mv ../../../../target/doc contrib/apidoc
3641
git add contrib
3742
git commit -m "Deploy $GITHUB_SHA to gh-pages"
3843
git push --force

0 commit comments

Comments
 (0)