-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.05 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
name: Docs
on:
push:
branches:
- main
jobs:
Docs:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.REPO_TOKEN }}
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
cd docs
pip install -r requirements.txt
- name: Build Docs
working-directory: docs
run: |
sphinx-apidoc -o apidocs ../TenshiTranslator ../TenshiTranslator/TenshiTranslatorCLI.py ../TenshiTranslator/TenshiTranslatorGUI.py ../TenshiTranslator/UI/* --separate
make html
cp build\html ..\docs -r
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
publish_dir: './docs/html'