From 8ef7a257289bc847cb1b565030bf4e8f9f7c59d7 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Thu, 6 Mar 2025 13:46:52 +0000 Subject: [PATCH] ci: separate github pages deploy workflow Signed-off-by: EnderIce2 --- .github/workflows/makefile.yml | 25 ------------------------- .github/workflows/website.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/website.yml diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 465dbe26..6a954efd 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -7,31 +7,6 @@ on: branches: [ master ] jobs: - deploydoc: - name: Deploy Documentation to GitHub Pages - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Install Doxygen - run: | - sudo apt update - sudo apt --no-install-recommends -y install doxygen make - - - name: Generate Documentation - run: make doxygen - - - name: Copy GitHub Pages Website - run: cp -r tools/website/* doxygen-doc/ - - - name: Deploy documentation - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: doxygen-doc - buildcompiler: name: Build Cross-Compiler & Toolchain runs-on: ubuntu-latest diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 00000000..18601e31 --- /dev/null +++ b/.github/workflows/website.yml @@ -0,0 +1,33 @@ +name: Deploy Website + +on: + push: + branches: [ master ] + paths: + - tools/website/** + - Kernel/include/interface/** + - Doxyfile + +jobs: + deploydoc: + name: Deploy Website to GitHub Pages + runs-on: ubuntu-latest + steps: + - name: Checkout code 🛎️ + uses: actions/checkout@v4 + + - name: Install Doxygen 📦 + run: | + sudo apt update + sudo apt --no-install-recommends -y install doxygen make + + - name: Generate Documentation 📚 + run: make doxygen + + - name: Copy GitHub Pages Website 📁 + run: cp -r tools/website/* doxygen-doc/ + + - name: Deploy documentation 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: doxygen-doc