Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI/CD

on:
push:
branches: [main]
paths-ignore:
- "requirements.txt"
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

jobs:
run-tests:
uses: ./.github/workflows/tests.yml

build-docs:
needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Doxygen & Graphviz
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz

- name: Generate documentation
run: doxygen Doxyfile

- name: Upload artifact for GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/html

deploy-docs:
needs: build-docs
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4
Loading