添加自动构建C++文档流程 #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Engine C++ documentation | |
| on: [push] | |
| jobs: | |
| work: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # github action 默认签出只包含最后一次提交 | |
| # 解决方案参考:https://stackoverflow.com/questions/62334460/git-history-in-a-github-action | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 | |
| #任务名称:设置Python环境 | |
| - name: Build doc | |
| # This is the version of the action for setting up Python, not the Python version. | |
| uses: mattnotmitt/[email protected] | |
| with: | |
| enable-latex: true | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./Doxygen/html/ |