Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Build & Deploy Doc #307

Build & Deploy Doc

Build & Deploy Doc #307

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 .[doc,optional]
- 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