-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.01 KB
/
sphinx.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
name: Build-sphinx-docs
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel
pip install -r requirements.txt
- name: Build HTML
run: |
cd All_Project_Files/Final_Project_Files/docs/
make html
- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Deploy to gh-pages
run: |
pip install ghp-import
ghp-import -n -p -f All_Project_Files/Final_Project_Files/docs/_build/html