Skip to content

feat(workflows): Add Doxygen GitHub Pages deployment workflow and upd… #2

feat(workflows): Add Doxygen GitHub Pages deployment workflow and upd…

feat(workflows): Add Doxygen GitHub Pages deployment workflow and upd… #2

name: Doxygen GitHub Pages Deploy Action
on:
push:
branches:
- main
jobs:
doxygen:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Doxygen
run: |
sudo apt-get install doxygen
- name: Generate Doxygen Documentation
run: |
doxygen Doxyfile.cfg
- name: Create gh-pages branch
run: |
git checkout -b gh-pages
- name: Copy documentation to gh-pages branch
run: |
cp -r Docs/Flakkari/html/* .
- name: Push documentation to gh-pages branch
run: |
git add .
git commit -m "Deploying documentation to GitHub Pages"
git push origin gh-pages