forked from bitcoindevkit/bdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.33 KB
/
python-api-docs.yaml
File metadata and controls
51 lines (40 loc) · 1.33 KB
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
46
47
48
49
50
51
name: Build Python API Docs
on:
workflow_dispatch:
permissions: {}
jobs:
build-api-docs:
name: "Build bdkpython API docs"
runs-on: ubuntu-24.04
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
fetch-depth: 0
- name: "Configure Git safe directory"
run: git config --global --add safe.directory /__w/bdk-python/bdk-python
- name: "Install Rust 1.84.1"
uses: actions-rs/toolchain@v1
with:
toolchain: 1.84.1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: "Generate bdk.py"
env:
PYBIN: ${{ env.pythonLocation }}/bin
run: bash ./scripts/generate-linux.sh
- name: "Install Sphinx and Theme"
run: pip install sphinx sphinx_rtd_theme
- name: "Generate python API Documentation"
run: python ./docs/generate_docs.py
- name: "Build HTML Documentation"
run: python -m sphinx -b html -W --keep-going docs/source docs/_build/html
- name: "Upload API Docs"
uses: actions/upload-artifact@v4
with:
name: artifact-bdkpython-api-docs
path: /home/runner/work/bdk-python/bdk-python/docs/_build/html