update CI for build api doc

This commit is contained in:
Yu Chen 2022-03-20 22:55:05 +08:00
parent 3a44decf58
commit d6a3de2510
2 changed files with 8 additions and 1 deletions

View File

@ -22,4 +22,10 @@ jobs:
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./os/target/riscv64gc-unknown-none-elf/doc publish_dir: ./os/target/riscv64gc-unknown-none-elf/doc
destination_dir: ${{ github.ref_name }} 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

View File

@ -25,6 +25,7 @@
<h1><a href="./ch7/os/index.html">7. IPCOS API doc</a></h1> <h1><a href="./ch7/os/index.html">7. IPCOS API doc</a></h1>
<h1><a href="./ch8/os/index.html">8. SyncMutexOS API doc</a></h1> <h1><a href="./ch8/os/index.html">8. SyncMutexOS API doc</a></h1>
<h1><a href="./ch9/os/index.html">9. DeviceOS API doc</a></h1> <h1><a href="./ch9/os/index.html">9. DeviceOS API doc</a></h1>
<h1><a href="./main/os/index.html">9. main-branch OS API doc</a></h1>
</body> </body>
</html> </html>