-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 1.37 KB
/
Copy pathdocs.yml
File metadata and controls
48 lines (40 loc) · 1.37 KB
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
name: Build and Deploy Docs
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout GenTL repository
uses: actions/checkout@v2
with:
submodules: true
- name: Checkout gentl-docs repository
uses: actions/checkout@v2
with:
repository: OpenGen/gentl-docs
path: gentl-docs
ssh-key: ${{secrets.GENTL_DOCS_PUSH_KEY }}
- name: Install C++ compiler and Doxygen
run: |
sudo apt update
sudo apt install gcc-11 g++-11
sudo apt install doxygen doxygen-doc graphviz
- name: Configure CMake
env:
CXX: g++-11
run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build
- name: Build GenTL HTML documentation using Doxygen
run: |
cmake --build ${{github.workspace}}/build
cmake --build ${{github.workspace}}/build --target docs
- name: Commit and push GenTL HTML documentation to gen-docs repository
run: |
cp -RT ${{github.workspace}}/build/docs/html/ ${{github.workspace}}/gentl-docs/latest/
cd ${{github.workspace}}/gentl-docs
git add -A
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "GenTL documentation bot"
git commit -m "Documentation update"
git push