Skip to content

Deploy Documentation #12

Deploy Documentation

Deploy Documentation #12

Workflow file for this run

# This workflow generates documentation for a project using Doxygen and sets it up for GitHub pages. It will push the
# documentation onto a special orphan branch to avoid cluttering the source code. This implementation comes from
# https://ntamonsec.blogspot.com/2020/06/github-actions-doxygen-documentation.html
name: Deploy Documentation
# Controls when the action will run.
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Doxygen
uses: mattnotmitt/doxygen-action@v1.1.0
with:
doxyfile-path: ./docs/doxygen_config
working-directory: .
- name: Pages Deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: pages