Add Workflow for Doxygen Document and GitHub Pages (#85) #2
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: A job to build doxgen document and deploy it on github-pages | |
on: | |
push: | |
branches: [main, master, doxygen] | |
pull_request: | |
branches: [main, master] | |
workflow_dispatch: | |
jobs: | |
doxygen-job: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: download modern theme | |
run: | | |
curl -OL https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome.css | |
- uses: mattnotmitt/doxygen-action@v1.9.5 | |
- name: Deploy pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: "html" |