-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (38 loc) · 1014 Bytes
/
deploy.yml
File metadata and controls
39 lines (38 loc) · 1014 Bytes
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
name: deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install and configure Poetry
run: |
pip install -U pip poetry
poetry config virtualenvs.create false
- name: Install deps
run: poetry install
- name: Build en
run: cd docs/en && mkdocs build
- name: Build zh
run: cd docs/zh && mkdocs build
- name: Deploy en
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/en/site
cname: fastapi-admin-docs.long2ice.io
- name: Deploy en
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/zh/site
destination_dir: zh