File tree Expand file tree Collapse file tree 4 files changed +127
-113
lines changed Expand file tree Collapse file tree 4 files changed +127
-113
lines changed Original file line number Diff line number Diff line change
1
+ name : deploy
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ jobs :
10
+ deploy :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-python@v4
15
+ with :
16
+ python-version : " 3.x"
17
+ - name : Install and configure Poetry
18
+ run : |
19
+ pip install -U pip poetry
20
+ poetry config virtualenvs.create false
21
+ - name : Install deps
22
+ run : poetry install
23
+ - name : Build en
24
+ run : cd docs/en && mkdocs build
25
+ - name : Build zh
26
+ run : cd docs/zh && mkdocs build
27
+ - name : Deploy en
28
+ uses : appleboy/scp-action@master
29
+ with :
30
+ host : ${{ secrets.HOST }}
31
+ username : ${{ secrets.USERNAME }}
32
+ key : ${{ secrets.KEY }}
33
+ source : " docs/en/site/*"
34
+ target : " /var/www/fastapi-admin-docs"
35
+ strip_components : 3
36
+ - name : Deploy zh
37
+ uses : appleboy/scp-action@master
38
+ with :
39
+ host : ${{ secrets.HOST }}
40
+ username : ${{ secrets.USERNAME }}
41
+ key : ${{ secrets.KEY }}
42
+ source : " docs/zh/site/*"
43
+ target : " /var/www/fastapi-admin-docs/zh"
44
+ strip_components : 3
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# fastapi-admin.github.io
2
2
3
- [ ![ gh-pages ] ( https://github.com/fastapi-admin/fastapi-admin.github.io/actions/workflows/gh-pages .yml/badge.svg )] ( https://github.com/fastapi-admin/fastapi-admin.github.io/actions/workflows/gh-pages .yml )
3
+ [ ![ deploy ] ( https://github.com/fastapi-admin/fastapi-admin.github.io/actions/workflows/deploy .yml/badge.svg )] ( https://github.com/fastapi-admin/fastapi-admin.github.io/actions/workflows/deploy .yml )
4
4
5
5
Docs of [ fastapi-admin] ( https://github.com/fastapi-admin/fastapi-admin )
You can’t perform that action at this time.
0 commit comments