-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1022 Bytes
/
deploy.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
name: Deploy to hosting
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Duplicate code for english and spanish servers
run: |
cd ${{ github.workspace }}
cd ..
mv hexagon en
mkdir hexagon
mv en hexagon/
cd hexagon
cp -R en/.github .
cp -R en es
sed -i '27,28 s/en/es/g' es/mudlib/include/mud/translations.h
- name: Synchronize with hosting
uses: maldorne/rsync-deploy@v2.1
env:
DEPLOY_KEY: ${{ secrets.REMOTE_SSH_KEY }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
REMOTE_SERVER: ${{ secrets.REMOTE_SERVER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
REMOTE_PATH: ${{ secrets.REMOTE_PATH }}
FOLDER: "./"
EXCLUDE_LIST: ".github/workflows/exclude.txt"
- name: Finishing sync
run: echo Sync finished!