-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (40 loc) · 1.12 KB
/
website.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
44
45
name: "Website"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Pip install python dependencies
run: |
pip install numpy # This is a hack so i don't get and error with fdint
pip install -e .
- name: Install docs dependencies
run: |
sudo apt-get -y install pandoc
pip install -r docs/requirements.txt
- name: Make docs
run: |
cd docs
make html
# Create an artifact of the html output.
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: docs/_build/html/
# Publish built docs to gh-pages branch.
# https://github.com/peaceiris/actions-gh-pages
- name: Deploy Website and Docs
if: success() && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/