-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (40 loc) · 1023 Bytes
/
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
46
name: "Sphinx Build"
on:
release:
types: [published]
branches: [main]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
poetry install
sudo apt-get install pandoc
- name: Build documentation
run: |
cd sphinx
poetry run make clean
poetry run make html
cd ..
rm -rf docs
mv sphinx/_build/html docs
touch docs/.nojekyll
ls -la docs
- name: Push built docs
run: |
git config --global user.name 'jostmorgenstern'
git config --global user.email '[email protected]'
git add .
git commit -am "Automated docs generation"
git status
git push origin main