Files
opensearch-pyd/.github/workflows/build_deploy_doc.yml
T
Philip May eca0b1736f fix GH actin to build Sphinx
Signed-off-by: Philip May <philip@may.la>
2022-02-08 17:48:56 -08:00

34 lines
684 B
YAML

name: Build & Deploy Doc
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install
run: |
python -m pip install -U pip
pip install --progress-bar off -U .[docs]
- name: Make
run: |
cd docs
make html
cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html