Skip to content

Commit

Permalink
Add github action to build documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChappuis committed Apr 30, 2024
1 parent 4babca9 commit 487aa4b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
documentation:
name: Build/Publish Documentation
runs-on: ubuntu-latest
#needs: [build-and-test]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install cmake doxygen
cmake --version
doxygen --version
- name: CMake Configure
shell: bash
run: |
mkdir build
cmake \
-S . \
-B build \
-DRP3D_GENERATE_DOCUMENTATION=True \
-DRP3D_COMPILE_TESTS=False \
-DRP3D_COMPILE_TESTBED=False
- name: Build Documentation
shell: bash
run: cmake --build build/
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
#needs: [build-and-test]
needs: [build-and-test]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create Release
- name: Build Documentation
uses: docker://antonyurchenko/git-release:v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 487aa4b

Please sign in to comment.