Merge pull request #67 from NeurodataWithoutBorders/add/docs-build-test #26
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
name: Doxygen GitHub Pages Deploy Action | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
defaults: | |
run: | |
shell: bash | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
- name: Install dependencies - macos | |
run: brew install hdf5 boost catch2 doxygen graphviz | |
- name: Configure | |
shell: pwsh | |
run: cmake "--preset=ci-macos" | |
- name: Build | |
run: cmake --build build | |
- name: Build the docs | |
run : cmake "-DPROJECT_SOURCE_DIR=$PWD" "-DPROJECT_BINARY_DIR=$PWD/build" -P cmake/docs-ci.cmake | |
- name: Create .nojekyll to ensure pages with underscores work on gh pages | |
run: touch build/docs/html/.nojekyll | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh_pages | |
folder: build/docs/html |