aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+git2020@grudev.com>2022-06-07 16:22:44 +0300
committerItay Grudev <itay+git2020@grudev.com>2022-06-07 16:22:44 +0300
commit4dea902f00e3ee16fec017d307bd6d132547c369 (patch)
tree319ee79cf131897fde7f704476132e61fc7fb26b
parentUse FetchContent to download Doxygen theme (diff)
downloadsingleapplication-4dea902f00e3ee16fec017d307bd6d132547c369.tar.xz
Moved Doxygen to separate workflow
-rw-r--r--.github/workflows/doxygen.yml38
-rw-r--r--.github/workflows/main.yml18
2 files changed, 38 insertions, 18 deletions
diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml
new file mode 100644
index 0000000..c47f809
--- /dev/null
+++ b/.github/workflows/doxygen.yml
@@ -0,0 +1,38 @@
+name: "Documentation"
+
+on:
+ push:
+ branches:
+ - 'main'
+ - 'master'
+
+jobs:
+ doxygen:
+ name: Doxygen
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Clone repo
+ uses: actions/checkout@v3
+
+ - name: Install doxygen and pre-requsites packages
+ run: |
+ sudo apt-get update
+ sudo apt-get install doxygen qtbase5-dev
+
+ - name: Generate documentation
+ run: |
+ cmake -B build -D DOXYGEN_WARN_AS_ERROR=YES
+ cmake --build build --target SingleApplicationDocumentation
+
+ - name: Deploy to GitHub pages
+ on:
+ branches:
+ - master
+
+ uses: crazy-max/ghaction-github-pages@v3
+ with:
+ target_branch: gh-pages
+ build_dir: build/html
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d16aa6f..7be1a28 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,24 +10,6 @@ on:
paths-ignore:
- "**.md"
-jobs:
- doxygen:
- name: Doxygen
- runs-on: ubuntu-20.04
- steps:
- - name: Clone repo
- uses: actions/checkout@v2.3.4
-
- - name: Install apt packages
- run: |
- sudo apt-get update
- sudo apt-get install doxygen qtbase5-dev
-
- - name: Generate documentation
- run: |
- cmake -B build -D DOXYGEN_WARN_AS_ERROR=YES
- cmake --build build --target SingleApplicationDocumentation
-
build:
name: Build
strategy: