File tree Expand file tree Collapse file tree 4 files changed +51
-3
lines changed Expand file tree Collapse file tree 4 files changed +51
-3
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Publish Documentation to GitHub pages.
3+ #
4+ name : Documentation
5+
6+ on :
7+ - push :
8+ tags :
9+ - v**
10+
11+ jobs :
12+ static-check :
13+ name : Publish Documentation
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ python-version : ["3.8"]
18+ steps :
19+ - uses : actions/checkout@v2
20+
21+ - name : Set up Python ${{ matrix.python-version }}
22+ uses : actions/setup-python@v2
23+ with :
24+ python-version : ${{ matrix.python-version }}
25+
26+ - name : Cache dependencies
27+ uses : actions/cache@v2
28+ with :
29+ path : ~/.cache/pip
30+ key : ${{ runner.os }}-docs-${{ hashFiles('setup.cfg') }}
31+ restore-keys : |
32+ ${{ runner.os }}-docs-
33+
34+ - name : Install dependencies
35+ run : |
36+ python -m pip install pip
37+ pip install -e .[docs]
38+
39+ - name : Sphinx make
40+ run : |
41+ cd ./docs
42+ make html
43+
44+ - name : Deploy
45+ uses : peaceiris/actions-gh-pages@v3
46+ with :
47+ github_token : ${{ secrets.GITHUB_TOKEN }}
48+ publish_dir : ./docs/_build/html
Original file line number Diff line number Diff line change 2525 uses : actions/cache@v2
2626 with :
2727 path : ~/.cache/pip
28- key : ${{ runner.os }}-pip -${{ hashFiles('setup.cfg') }}
28+ key : ${{ runner.os }}-dev -${{ hashFiles('setup.cfg') }}
2929 restore-keys : |
30- ${{ runner.os }}-pip -
30+ ${{ runner.os }}-dev -
3131
3232 - name : Install dependencies
3333 # We install the full dev requirements to make sure everything installs OK
Original file line number Diff line number Diff line change 1717
1818# -- Project information -----------------------------------------------------
1919
20- project = "Python Client"
20+ project = "Mindee Python Client"
2121copyright = "2022, Mindee"
2222author = "Mindee"
2323
You can’t perform that action at this time.
0 commit comments