Skip to content

更新文档

更新文档 #12

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Rebuild poetry.lock
run: |
poetry lock --no-update
- name: Install dependencies
run: |
poetry install
- name: Build documentation
run: |
cd docs
poetry run make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html