doxytest/.gitea/workflows/doxygen.yml
2025-01-28 01:26:44 +01:00

39 lines
985 B
YAML

version: '2'
# Define the workflow trigger: when code is pushed to the main branch
trigger:
- push:
branches:
- main
# Jobs to be run
jobs:
generate-doxygen-docs:
# Specify the runner to use. `ubuntu` is a typical choice.
runs_on: ubuntu:latest
# Define the steps within the job
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen
- name: Generate Doxygen Documentation
run: |
doxygen Doxyfile # Ensure your Doxyfile is set up correctly in the repository
- name: Upload Documentation as Artifact
uses: actions/upload-artifact@v2
with:
name: doxygen-docs
path: docs/ # Make sure this is the output directory from Doxygen