mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-02-21 17:29:19 +08:00
Moved Doxygen to separate workflow
This commit is contained in:
parent
cf4c21e854
commit
4dea902f00
38
.github/workflows/doxygen.yml
vendored
Normal file
38
.github/workflows/doxygen.yml
vendored
Normal file
@ -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 }}
|
||||
|
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user