-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 995 Bytes
/
Copy pathbuild_docs.yaml
File metadata and controls
42 lines (34 loc) · 995 Bytes
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
name: Build & Publish Docs with Sphinx
on:
release:
types: [published]
jobs:
release:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies & Convert README
run: |
python -m pip install --upgrade pip
pip install -r m2r
m2r README.md
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@master
with:
include: "README.rst"
- name: Move README.rst & Build sphinx documentation
run: |
mv README.rst docs/source
cd docs
make html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy.