Skip to content

Commit

Permalink
Use separate CI doxygen action
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Dec 5, 2023
1 parent 2643bd3 commit acd11b7
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -415,27 +415,6 @@ jobs:
- name: Upload Report to codecov.io
if: ${{ matrix.coverage == 'ON' }}
uses: codecov/codecov-action@v1
- name: Checkout gh-pages
if: ${{ matrix.doxygen == 'ON' }}
uses: actions/checkout@v3
with:
ref: 'gh-pages'
path: 'html'
- name: update and commit to gh-pages branch
if: ${{ matrix.doxygen == 'ON' }}
working-directory: html
run: |
rm -rf doxygen
mv ../build/html doxygen
git config --global user.name "Automatic Deployment (GitHub Action)";
git config --global user.email "[email protected]"
git add --all
git diff --quiet HEAD || git commit -m "Documentation Update"
if [[ "${GITHUB_REF}" == 'refs/heads/master' ]]; then
git push
else
git show
fi

HIP:
defaults:
Expand Down Expand Up @@ -584,3 +563,19 @@ jobs:
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
cmake --build build --parallel 2 --verbose
cmake --install build
doxygen:
name: Doxygen Check and deploy
runs-on: ubuntu-latest
steps:
- name: Doxygen check
# This uses doxygen 1.9.6 - use new tags when available
uses: mattnotmitt/doxygen-action@edge
with:
doxyfile-path: build/Doxyfile.doxygen
- name: Doxygen deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html

0 comments on commit acd11b7

Please sign in to comment.