-
Notifications
You must be signed in to change notification settings - Fork 27
71 lines (60 loc) · 1.62 KB
/
docs-action.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build and deploy docs
on:
push:
branches:
- main
paths:
- "docs/**.md"
- "docs/mkdocs.yml"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Github repo
uses: actions/checkout@v3
- name: Set up Python Virtualenv
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Setup venv
run: |
python3 -m venv .venv
- uses: dtolnay/rust-toolchain@nightly
- name: Set up dependencies
run: |
.venv/bin/pip install -U maturin pip
sudo apt-get update -qq
sudo apt-get install -y -qq make
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "23.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
.venv/bin/pip install \
grpcio \
grpcio-tools \
"protobuf==3.20.3" \
mkdocs \
pdoc \
mkdocs-material \
mkdocs-redirects \
pymdown-extensions \
ghp-import \
pdoc \
cairosvg \
pillow \
typing_extensions
- name: Build and install gl-client-py
run: |
(cd libs/gl-client-py; ../../.venv/bin/maturin develop)
- name: Build docs
env:
DOCSBRANCH: "gh-pages"
DOCSREMOTE: "origin"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
rm libs/gl-client-py/glclient/*.pyi
PATH=$(pwd)/.venv/bin:$PATH make docs