Skip to content

Commit 5270c60

Browse files
Create docs.yml
1 parent ae28ef2 commit 5270c60

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/docs.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
python-version: [3.7]
18+
19+
steps:
20+
- name: Set up Python
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: 3.7
24+
25+
- name: Checkout 🛎️
26+
uses: actions/checkout@v2
27+
28+
- name: Install Dependencies
29+
run: |
30+
pip install -U sphinx
31+
pip install -U sphinx-rtd-theme
32+
33+
- name: Build Docs
34+
run: |
35+
sphinx-build -b html ./doc/source/ public
36+
touch public/.nojekyll
37+
38+
- name: Deploy 🚀
39+
uses: JamesIves/github-pages-deploy-action@releases/v3
40+
with:
41+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
42+
BRANCH: gh-pages
43+
FOLDER: public

0 commit comments

Comments
 (0)