-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (35 loc) · 958 Bytes
/
deploy-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy docs
on:
push:
branches:
- main
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'setuptools<50.0'
python -m pip install .[testing,docs]
- name: Build docs
run: |
python docs/replace_description_text.py
cd docs
make html
cd ..
- name: Deploy docs 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/_build/html