-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (37 loc) · 1.11 KB
/
generate_doc.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
name: docs
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with :
ref: "main"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: install dependencies
run: |
pip install .
pip install -r docs/requirements.txt
- name: build and push
run: |
mkdir ~/.ssh
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
echo "${{ secrets.DOC_DEPLOY_KEY }}" > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
git config --local user.email "takumi.ando826@gmail.com"
git config --local user.name tand826
git remote set-url origin git@github.com:tand826/wsiprocess.git
cd docs
sphinx-apidoc ../wsiprocess -o ./ -f --ext-autodoc
make html
cp -r _build/html/* ./
git add ./
git commit -m "generate documentation from github action"
git push origin main