Skip to content

Merge pull request #854 from Zahhask45/feat/lka-pipeline #2586

Merge pull request #854 from Zahhask45/feat/lka-pipeline

Merge pull request #854 from Zahhask45/feat/lka-pipeline #2586

name: Generate Doxygen Documentation
on:
push:
pull_request:
jobs:
generate-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Doxygen
run: |
sudo apt-get update -y
sudo apt-get install -y doxygen graphviz
- name: Generate Doxygen Documentation
run: |
cd firmware
doxygen Doxyfile
- name: Upload documentation as artifact
uses: actions/upload-artifact@v7
with:
name: doxygen-html-documentation
path: firmware/html/
retention-days: 30
- name: Archive documentation
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
cd firmware
tar -czf ../doxygen-docs.tar.gz html/
- name: Upload release artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v7
with:
name: doxygen-docs-archive
path: doxygen-docs.tar.gz
retention-days: 60