-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (31 loc) · 1.17 KB
/
ci.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
name: Sync
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Sync
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
command_timeout: 20m
script: |
cd /app/website/website-doc-en-US
git pull
- name: CN - Sync
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_CN }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY_CN }}
port: ${{ secrets.PORT }}
command_timeout: 20m
script: |
cd /app/website/website-doc-en-US
git pull