-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (33 loc) · 926 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
name: Docs
on:
workflow_dispatch:
push:
branches:
- master
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Sphinx and dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx-rtd-theme
- name: Build Documentation
run: |
sphinx-build -b html docs/ build/docs
- name: Create CNAME file
run: echo "api-client-python.docs.libredte.cl" > build/docs/CNAME
- name: Deploy to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs
publish_branch: gh-pages