Skip to content

Commit

Permalink
pages?
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Nov 18, 2023
1 parent 5f9ef3d commit 3396b93
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,51 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: multi platform test
name: publish docs

on:
push:
branches: [ "trunk", "develop" ]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Install dependencies Ubuntu
run: >
sudo apt-get update && sudo apt-get install cmake doxygen python3-sphinx
run: sudo apt-get update && sudo apt-get install cmake doxygen python3-sphinx
- name: Configure CMake
run: >
cmake -S . -B build -DBUILD_DOCUMENTATION=ON -DBUILD_TESTING=OFF
run: cmake -S . -B build -DBUILD_DOCUMENTATION=ON -DBUILD_TESTING=OFF
- name: Run Doxygen
run: >
cmake --build build --target Doxygen-libmcfp
run: cmake --build build --target Doxygen-libmcfp

- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
build-command: "sphinx-build -b html . ../build/sphinx -Dbreathe_projects.libmcfp=../build/docs/xml"

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ../build/docs/sphinx

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

needs: docs

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms
name: build and test

on:
push:
Expand Down

0 comments on commit 3396b93

Please sign in to comment.