-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1.09 KB
/
build_and_deploy_docs.yaml
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
name: Build and Deploy Sphinx Docs to GitHub Pages
on:
push:
branches:
- main # replace with your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # replace x with your version
- name: Install Dependencies from requirements.txt
run: pip install -r requirements.txt
- name: Install Optional Dependencies from requirements_opt.txt
run: pip install -r requirements_opt.txt
- name: Install Dependencies from requirements_dev.txt
run: pip install -r requirements_dev.txt
- name: Build Sphinx Docs
run: |
cd docs
make html # adjust based on your Makefile
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.LEGUARK_ACCESS_TOKEN }}
publish_dir: ./docs/build/html # replace with your generated HTML path