add action
This commit is contained in:
parent
f1706930d6
commit
1e4ab6913a
37
.gitea/workflows/doxygen.yaml
Normal file
37
.gitea/workflows/doxygen.yaml
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user