fix build doc

Able to show different crates
This commit is contained in:
zhangy 2022-04-30 16:36:46 +08:00 committed by GitHub
parent f9346edad1
commit cb50e377b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,10 +16,10 @@ jobs:
rustup component add llvm-tools-preview
rustup component add rust-src
cd os
cargo doc --no-deps --verbose
- name: Deploy to Github Pages
cargo doc --document-private-items --verbose
- name: Push to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./os/target/riscv64gc-unknown-none-elf/doc
destination_dir: ${{ github.ref_name }}
destination_dir: ${{ github.ref_name }}