Skip to content

Commit de99916

Browse files
committed
update deploy
1 parent cf51805 commit de99916

File tree

4 files changed

+127
-113
lines changed

4 files changed

+127
-113
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# fastapi-admin.github.io
22

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)
44

55
Docs of [fastapi-admin](https://github.com/fastapi-admin/fastapi-admin)

0 commit comments

Comments
 (0)