mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-25 19:03:35 +04:00
31 lines
898 B
YAML
31 lines
898 B
YAML
name: Build Rust Doc
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build-doc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build doc
|
|
run: |
|
|
rustup target add riscv64gc-unknown-none-elf
|
|
rustup component add llvm-tools-preview
|
|
rustup component add rust-src
|
|
cd os
|
|
cargo doc --no-deps --verbose
|
|
- name: Deploy to Github Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./os/target/riscv64gc-unknown-none-elf/doc
|
|
destination_dir: ./public/${{ github.ref_name }}
|
|
- name: Deploy index.html to Github Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./public
|
|
destination_dir: ./public |