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