mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 08:12:14 +08:00
👷 add api docs ci
This commit is contained in:
parent
b4d7fded7f
commit
4306d12f83
31
.github/workflows/api_docs.yml
vendored
Normal file
31
.github/workflows/api_docs.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Build API Doc
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ opened, synchronize, reopened ]
|
||||||
|
branches: [ master, dev ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
- name: Install Dependences
|
||||||
|
run: pip3 install .
|
||||||
|
|
||||||
|
- name: Build Doc
|
||||||
|
run: sphinx-build -M markdown ./docs_build ./build
|
||||||
|
|
||||||
|
- name: Copy Files
|
||||||
|
run: cp ./build/markdown/*.md ./docs/api/
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
git config user.name nonebot
|
||||||
|
git config user.email nonebot@nonebot.dev
|
||||||
|
git add .
|
||||||
|
git commit -m ":memo: update api docs"
|
||||||
|
git push
|
Loading…
Reference in New Issue
Block a user