name: Build And Deploy MkDocs

on:
# TODO(vmirian) 2022-02-02 Enable below to execute action on push.
#  push:
#    branches:
#    - main
#    paths:
#    - "**.md"
#    - "mkdocs.yml"
  workflow_dispatch:

jobs:
  docs:
    needs: build
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
    - run: pip install --upgrade pip && pip install mkdocs mkdocs-gen-files
    - run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
    - name: Publish docs
      run: mkdocs gh-deploy
# TODO(vmirian) 2022-02-02 When action is live, enable message.
#      run: mkdocs gh-deploy -m "mkdocs generated documentation from ${GITHUB_SHA}"
name: Build And Deploy MkDocs

on:
# TODO(vmirian) 2022-02-02 Enable below to execute action on push.
#  push:
#    branches:
#    - main
#    paths:
#    - "**.md"
#    - "mkdocs.yml"
  workflow_dispatch:

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
    - run: pip install --upgrade pip && pip install mkdocs mkdocs-gen-files
    - run: git config user.name 'xls-github-bot' && git config user.email 'xls-github-bot@google.com'
    - name: Publish docs
      run: mkdocs gh-deploy
# TODO(vmirian) 2022-02-02 When action is live, enable message.
#      run: mkdocs gh-deploy -m "mkdocs generated documentation from ${GITHUB_SHA}"
Improve Github action for building and deploying the documentation. 1. Enable xls-github-bot to commit documentation builds. 2. Remove dependency in Build And Deploy MkDocs action.
[OSS] Improve Github action for building and deploying the documentation.
1. Enable xls-github-bot to commit documentation builds.
2. Remove dependency in Build And Deploy MkDocs action.

PiperOrigin-RevId: 426224153
