-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.18 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
43
44
45
46
47
48
49
50
51
52
53
54
name: Sphinx test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build documentation
run: |
make html
pwd
ls -lh
- name: Commit and push to gh-pages
run: |-
git config --global user.email "[email protected]"
git config --global user.name "naic-bot"
touch .nojekyll
mv _build/html docs
touch docs/.nojekyll
git add -A
git commit -m "generated using sphinx-build"
- name: Push to pages
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: docs