-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (45 loc) · 1.65 KB
/
doxygen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Workflow for generating, checking, and deploying our doxygen documentation.
name: Doxygen
# This Workflow is triggered by any PR or a direct push to master.
on:
push:
branches: [ master ]
pull_request:
# abort old runs if a new one is started
concurrency:
group: ${{ github.head_ref }}-doxygen
cancel-in-progress: true
jobs:
DoxygenCheck:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config: [ "", _md-flexible ]
name: DocumentationCheck AutoPas${{ matrix.config }}
env:
# this is currently dictated by the autopas-build-doxygen container
BUILD_DIR: docker-build-doxygen
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build documentation
# writes all warnings to warnings.out
uses: docker://autopas/autopas-build-doxygen
with:
entrypoint: buildDocumentation.sh
# arg1 make target
# arg2 path to root of AutoPas directory.
args: doc_doxygen${{ matrix.config }} .
- name: Deploy documentation (only on master)
uses: peaceiris/actions-gh-pages@v3.7.2
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./${{ env.BUILD_DIR }}/doc_doxygen${{ matrix.config }}/html/ # from dir
destination_dir: doxygen_documentation${{ matrix.config }}/git-master/ # to dir
external_repository: AutoPas/AutoPas.github.io
publish_branch: main
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com