diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml new file mode 100644 index 0000000..4c61447 --- /dev/null +++ b/.github/workflows/doxygen.yml @@ -0,0 +1,30 @@ +name: Generate and Deploy Doxygen Documentation + +on: + push: + branches: + - main + +jobs: + generate-docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies (CMake, Doxygen) + run: | + sudo apt-get update + sudo apt-get install -y cmake doxygen graphviz + + - name: Generate Doxygen Documentation + run: | + cmake --preset=docs + cmake --build --preset=docs + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/html