name: 📖 Deploy Documentation

on:
  push:
    branches:
    - "*"

jobs:
  deploy-docs:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    # Install dependencies
    - name: Set up Python 3.8
      uses: actions/setup-python@v1
      with:
        python-version: 3.8

    - name: Install dependencies
      run: |
        pip install -r requirements/pip_requirements.txt
        pip install sphinx sphinx_rtd_theme
    # Build the documentation
    - name: Build the documentation
      run: |
        cd docs
        make html
    # Push the documentation's HTML to github-pages
    - name: GitHub Pages action
      uses: peaceiris/actions-gh-pages@v3.5.9
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        publish_dir: ./docs/_build/html

name: 📖 Deploy Documentation

on:
  push:
    branches:
    - dev

jobs:
  deploy-docs:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    # Install dependencies
    - name: Set up Python 3.8
      uses: actions/setup-python@v1
      with:
        python-version: 3.8

    - name: Install dependencies
      run: |
        pip install -r requirements/pip_requirements.txt
        pip install sphinx sphinx_rtd_theme
    # Build the documentation
    - name: Build the documentation
      run: |
        cd docs
        make html
    # Push the documentation's HTML to github-pages
    - name: GitHub Pages action
      uses: peaceiris/actions-gh-pages@v3.5.9
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        publish_dir: ./docs/_build/html

Make it to only build docs when pushing to dev branch
Make it to only build docs when pushing to dev branch [ci skip]
