diff --git a/.github/workflows/deploy_doxygen_ci_workflow.yml b/.github/workflows/deploy_doxygen_ci_workflow.yml new file mode 100644 index 0000000..97cb21c --- /dev/null +++ b/.github/workflows/deploy_doxygen_ci_workflow.yml @@ -0,0 +1,32 @@ +name: Build and Deploy Doxygen Docs + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: write + +jobs: + docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Doxygen + run: sudo apt-get install -y doxygen graphviz + + - name: Build Doxygen documentation + run: doxygen Doxyfile + + - name: Deploy to GitHub Pages + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./doc/html + publish_branch: gh-pages