From 371e614fb1069caa0b7f0ca7a3a7f1c9eb29a786 Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Sun, 20 Mar 2022 21:09:31 +0800 Subject: [PATCH] add github CI for build-doc --- .github/workflows/build-doc.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build-doc.yml diff --git a/.github/workflows/build-doc.yml b/.github/workflows/build-doc.yml new file mode 100644 index 00000000..2bba7a56 --- /dev/null +++ b/.github/workflows/build-doc.yml @@ -0,0 +1,22 @@ +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: | + 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: ${{ github.ref_name }}