name: Deploy documentation to GitHub
on:
  push:
    branches: [ "development" ]
    paths: [ "docs/**" ]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - uses: actions/setup-python@v4
        with:
          python-version: 3.9

      - name: Install dependencies
        run: pip install mkdocs-material

      - name: Deploy documentation
        run: mkdocs gh-deploy --force