committed by
Vijayan Balasubramanian
parent
4056fa0176
commit
19be5802ea
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in New Issue
Block a user