Search code examples
githubgithub-actionsdoxygenbuilding-github-actions

File ./Doxyfile could not be found


enter image description here

I am trying to make a gthub action wit doxygen using the yaml code below.

name: Doxygen Action
on: ["push"]
jobs:
  build:
    runs-on: "ubuntu-latest"
    steps:
      - name: "Doxygen Action"
        uses: mattnotmitt/doxygen-action@v1.3.1
        with:
          doxyfile-path: ./Doxyfile
          additional-packages: font-fira-code'

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3.7.3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./public

Although I put the Doxyfile under the working directory, it cannot be found. --> File ./Doxyfile could not be found!

I am wondering what I am missing in my code.

Thank you very much in advance for your help


Solution

  • Running Doxygen is easier without the doxygen-action. I recommend you to try this:

    1. Install Doxygen with sudo apt-get install doxygen
    2. Generate Doxy docs with doxygen Doxyfile

    That's it really. Or simply with Actions step:

    - name: "Doxygen"
      run: |
        sudo apt-get install -y doxygen
        doxygen Doxyfile