From 202ad005cd603bf1766cfdbedcf5c7c360ee24e7 Mon Sep 17 00:00:00 2001 From: Alan Guedes Date: Thu, 6 Jul 2023 16:04:30 +0100 Subject: [PATCH] add github action for doxygen --- .github/workflows/gh-pages.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 000000000..787b10cb7 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,28 @@ +on: + workflow_dispatch: + push: + branches: + - master + paths: + - "lib/*" + - "doc/*" + - "src/*" + +permissions: + contents: write + +jobs: + gh-pages: + runs-on: ubuntu-latest + steps: + - uses: ssciwr/doxygen-install@v1 + - uses: symbitic/install-cmake@master + - run: mkdir _build + - run: cd _build + - run: cmake .. + - run: cmake --build . --target doc + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/html # Build output to publish to the `gh-pages` branch \ No newline at end of file