Skip to content

Commit e65fe7b

Browse files
committed
Create deploy_docs.yml
1 parent 823e15e commit e65fe7b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Docs dev
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
7+
jobs:
8+
release:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install dependencies
18+
run: |
19+
sudo apt install pandoc
20+
python -m pip install --upgrade pip
21+
pip install -e .[full]
22+
pip install boto smart_open sphinx sphinx-rtd-theme
23+
- name: Build sphinx documentation
24+
run: |
25+
cd docs && make html
26+
cd ..
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./docs/_build/html

0 commit comments

Comments
 (0)