Working on github action #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |