Skip to content

Commit 90b6ebb

Browse files
committed
Added docs deployment workflow
1 parent b80c47f commit 90b6ebb

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/deploy_docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy docs
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
report:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [ 3.8 ]
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
19+
- name: Install packages
20+
run: |
21+
python -m pip install --upgrade pip wheel setuptools
22+
python -m pip install -r requirements.txt
23+
python -m pip install -r requirements/docs.txt
24+
python -m pip install .
25+
python -m pip list
26+
27+
- name: Build
28+
run: make -C docs/ html
29+
30+
- name: Deploy
31+
uses: JamesIves/github-pages-deploy-action@4.1.2
32+
with:
33+
branch: gh-pages # The branch the action should deploy to.
34+
folder: docs/_build/html # The folder the action should deploy.

0 commit comments

Comments
 (0)