Skip to content

Commit

Permalink
Try fix Doxygen action
Browse files Browse the repository at this point in the history
  • Loading branch information
ceztko committed Dec 20, 2023
1 parent 5246bf5 commit 33bf892
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ jobs:
sudo apt-get install -y doxygen
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DPODOFO_BUILD_DOC_ONLY=True
run: cmake -B "${{github.workspace}}/build" -DPODOFO_BUILD_DOC_ONLY=True

- name: Generate Doxygen Documentation
run: doxygen ${{ github.workspace }}/Doxyfile
run: doxygen "${{github.workspace}}/build/Doxyfile"

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ${{ github.workspace }}/documentation/html
path: "${{github.workspace}}/documentation/html"

deploy:
needs: build-and-deploy
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{steps.deployment.outputs.page_url}}
steps:

- name: Deploy to GitHub Pages
Expand Down
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ set(PODOFO_VERSION_PATCH "0" CACHE STRING "Patchlevel part of podofo version num
set(PODOFO_VERSION "${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}")
set(PODOFO_SOVERSION "3")

set(PROJECT_NUMBER "${PODOFO_VERSION}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY
)

find_package(Doxygen)
if (DOXYGEN_FOUND)
set(PROJECT_NUMBER "${PODOFO_VERSION}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY
)
# TODO: Add doxygen target
endif()

Expand Down

0 comments on commit 33bf892

Please sign in to comment.