From a61d34e2b1afbb94b92ab5e1bba4d7aed270faba Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Sun, 20 Mar 2022 23:20:09 +0800 Subject: [PATCH] update CI for build api doc --- .github/workflows/build-doc.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-doc.yml b/.github/workflows/build-doc.yml index f559e3da..7de1beda 100644 --- a/.github/workflows/build-doc.yml +++ b/.github/workflows/build-doc.yml @@ -15,15 +15,12 @@ jobs: rustup target add riscv64gc-unknown-none-elf rustup component add llvm-tools-preview rustup component add rust-src + rm -rf public/${{ github.ref_name }} + mkdir -p public/${{ github.ref_name }} cd os cargo doc --no-deps --verbose + cp -r ./target/riscv64gc-unknown-none-elf/doc ../public/${{ github.ref_name }} - 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: ./docs/${{ github.ref_name }} - - name: Deploy index.html to Github Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}