name: build-and-docs

on:
  push:
    branches: [ develop ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2.3.1
      - run: |
          mkdir build && cd build
          cmake .. && make
  docs:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2.3.1
      - name: Doxygen Action
        uses: mattnotmitt/doxygen-action@v1.1.0
          with:
            working-directory: 'docs/'
            doxyfile-path: './'
      - name: Deploy Docs
        uses: peaceiris/actions-gh-pages@v3.6.4
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_branch: gh-pages
          publish_dir: ./docs/html

Add github actions to build library and build docs...
Add github actions to build library and build docs...
