-
-
Notifications
You must be signed in to change notification settings - Fork 76
39 lines (32 loc) · 885 Bytes
/
gh-pages.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
name: "Build and deploy Github pages"
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: "Install Python dependencies"
run: |
pip3 install setuptools
pip3 install recommonmark
pip3 install sphinx sphinx-rtd-theme==2.0.0
pip3 install sphinx_markdown_tables
- name: "Build Sphinx Doc"
run: |
make html
- name: "Deploy Github Pages"
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/html/