From 7a5c225239df7da808fcf16c21b1382b161e5feb Mon Sep 17 00:00:00 2001 From: oheyek Date: Fri, 2 Jan 2026 16:06:08 +0100 Subject: [PATCH] feat: add CI/CD docs deploy --- .github/workflows/ci_cd.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci_cd.yml diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml new file mode 100644 index 0000000..8814dcf --- /dev/null +++ b/.github/workflows/ci_cd.yml @@ -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