-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (46 loc) · 1.38 KB
/
pdoc.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
48
49
50
51
52
53
54
55
56
57
# deploy on pages
name: pdoc
permissions:
contents: write
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9.16"
- name: poetry install
run: |
pip install poetry
export POETRY_VIRTUALENVS_CREATE=false
poetry install -n
- name: run pdoc
run: |
pdoc --version
pdoc --html -o ./docs mirai
- name: prepare vercel project
run: |
mv ./docs/mirai/* ./docs/
# - uses: actions/setup-node@v1
# with:
# node-version: "14.x"
# - name: install vercel cli
# run: npm i vercel
# - name: deploy
# run: |
# vercel link "$PWD/docs/yiri-mirai-api" --confirm --token=${{ secrets.VERCEL_TOKEN }}
# vercel deploy "$PWD/docs/yiri-mirai-api" --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.