Merge pull request #268 from WorksApplications/fix/267-python-document #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |