-
-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (35 loc) · 1.07 KB
/
docs-deploy.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
name: Deploy Documentation
on:
push:
branches: [ develop ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build rust document
# build document of lib only for now to avoid name collision.
working-directory: ./sudachi
run:
cargo doc --no-deps
- name: Move docs
run: mv ./target/doc ./docs/rust
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: python3 -m pip install -U setuptools setuptools-rust sphinx sphinx-rtd-theme
- name: Build python binding
working-directory: ./python
run: python3 -m pip install .
- name: Build pyhton document
working-directory: ./python/docs
run: make html
- name: Move docs
run: mv ./python/docs/build/html ./docs/python
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs