Update doxygen-and-deploy.yml #6
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: Doxygen GitHub Pages Deploy Action | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- name: install doxygen | |
run: sudo apt-get install doxygen -y || sudo yum install doxygen -y | |
shell: bash | |
- name: make Doxygen output | |
run: doxygen docs/Doxyfile | |
shell: bash | |
- name: add sub module | |
run: touch .nojekyll && git add . && git commit -m "commit html" | |
working-directory: docs/html | |
- name: set submodules | |
run: git subtree split -P docs/html -b gh-pages | |
shell: bash | |
- name: push html to gh-pages | |
run: git push origin gh-pages | |
working-directory: docs/html | |