-
-
Notifications
You must be signed in to change notification settings - Fork 225
49 lines (43 loc) · 1.39 KB
/
publish-documentation.yml
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
# Build the Doxygen documentation (User manual and API reference) and publish it to www.reactphysics3d.com website
name: Publish Documentation
# Controls when the action will run. Triggers the workflow on push
on:
push:
branches:
- documentation
jobs:
documentation:
name: Build/Publish Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install cmake doxygen texlive-latex-extra ghostscript
cmake --version
doxygen --version
- name: CMake Configure
shell: bash
run: |
mkdir build
cmake \
-S . \
-B build \
-DRP3D_COMPILE_LIBRARY=False \
-DRP3D_GENERATE_DOCUMENTATION=True \
-DRP3D_COMPILE_TESTS=False \
-DRP3D_COMPILE_TESTBED=False
- name: Build Documentation
shell: bash
run: cmake --build build/
- name: Publish to FTP of website
uses: SamKirkland/[email protected]
with:
server: ftp.cluster010.ovh.net
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: ./build/documentation/html/
server-dir: /wwwrp3d/doc_test/
dangerous-clean-slate: true