-
Notifications
You must be signed in to change notification settings - Fork 34
44 lines (36 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
name: docs
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: "3.9"
- name: Install python dependencies
run: |
pip install sphinx==6.2.1 sphinx-rtd-theme==1.2.0 myst-parser==1.0.0 pybip39
- name: Build Wheels
uses: messense/maturin-action@v1
with:
command: build
args: --release --out dist
- name: Install module
run: |
pip install typing-extensions jsonalias
pip install solders --no-index --no-dependencies --find-links dist --force-reinstall
- name: Build documentation
run: make html
- name: Test documentation
run: make doctest
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
force_orphan: true