diff --git a/.github/workflows/doxygen-gh-pages.yml b/.github/workflows/doxygen-gh-pages.yml new file mode 100644 index 000000000..63a85c5f4 --- /dev/null +++ b/.github/workflows/doxygen-gh-pages.yml @@ -0,0 +1,41 @@ +name: Doxygen GitHub Pages Deploy Action + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-22.04 + permissions: + contents: read + pages: write + id-token: write + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install dependencies + run: | + sudo apt update + sudo apt install gcc-10 g++-10 mpich doxygen + + - name: Configure CMake + env: + MPICH_CXX: g++-10 + MPICH_CC: gcc-10 + run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_C_COMPILER=mpicc -DCMAKE_VERBOSE_MAKEFILE=ON -DMESHES=${{github.workspace}}/pumi-meshes -DIS_TESTING=ON -DSCOREC_CXX_WARNINGS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install -DSCOREC_NO_MPI=ON + + - name: Generate Doc + run: doxygen ${{github.workspace}}/build/Doxyfile + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./doc/html + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file