From 1e4ab6913a67a2d293ffd27c40c28e805baa4ac1 Mon Sep 17 00:00:00 2001 From: Thijs Kamphuis Date: Tue, 28 Jan 2025 01:21:47 +0100 Subject: [PATCH] add action --- .gitea/workflows/doxygen.yaml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/doxygen.yaml diff --git a/.gitea/workflows/doxygen.yaml b/.gitea/workflows/doxygen.yaml new file mode 100644 index 0000000..9d659b8 --- /dev/null +++ b/.gitea/workflows/doxygen.yaml @@ -0,0 +1,37 @@ +version: '2' + +# Define the workflow trigger: when code is pushed to the main branch +trigger: + - push + - pull_request + +# 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