-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (32 loc) · 827 Bytes
/
sphinx.yml
File metadata and controls
38 lines (32 loc) · 827 Bytes
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
name: Sphinx-docs
on:
push:
branches:
- main
- gh-pages
workflow_dispatch:
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Build HTML
run: python -m sphinx.cmd.build -M html docs/source docs/build
# - name: Build HTML
# uses: ammaraskar/sphinx-action@master
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
# - name: Deploy
# uses: sphinx-notes/pages@v3
# with:
# publish: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DOCSITE_TOKEN }}
publish_dir: docs/build/html