ci: use the checkout action for checking out submodules #2
Workflow file for this run
This file contains 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: 'Generate docs' | |
on: | |
push: | |
branches: | |
- 'trunk' | |
paths: | |
- '**.cpp' | |
- '**.hpp' | |
- '**.md' | |
jobs: | |
generate: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo & submodules | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Doxygen Action | |
uses: mattnotmitt/doxygen-action@v1.9.8 | |
with: | |
doxyfile-path: "./Doxyfile" | |
working-directory: "." | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./generated-docs/html |