-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.11 KB
/
docs.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Install Dependencies
run: |
pip install -U sphinx
pip install -U sphinx-rtd-theme
ls ./
- name: Build Docs
run: |
sphinx-build -b html ./doc/source/ public
touch public/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: public