name: build docs on: push: branches: - docs jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: "recursive" fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Python uses: actions/setup-python@v1 with: python-version: '3.7' architecture: 'x64' - name: Install dependencies run: | python3 -m pip install --upgrade pip # install pip python3 -m pip install mkdocs # install mkdocs python3 -m pip install mkdocs-material # install material theme python3 -m pip install -r ./requirements.txt - name: Build site run: mkdocs build - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.4 with: branch: gh-pages folder: site