Skip to content

Update workflow branches #1

Update workflow branches

Update workflow branches #1

name: Generate and Deploy Doxygen Documentation
on:
push:
branches:
- master
- github-action-api-docs # Modify this to match your master branch name
workflow_dispatch: # Allow manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake doxygen graphviz libboost-all-dev libeigen3-dev
- name: Configure and Build Project
run: |
mkdir build
cd build
cmake ..
make doc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doc/html # Directory containing the HTML documentation