-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 1.02 KB
/
main.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
41
42
name: CD
on:
push:
branches: [ main ]
paths-ignore:
- 'assets/**'
- 'xsl/**'
- '**.md'
- 'LICENSE'
- '.gitignore'
- 'package*.json'
- 'tailwind.config.js'
- 'config-local.xml'
- 'config-test.xml'
- 'docker-compose.override.yml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy files to remote server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
port: ${{ secrets.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_KEY }}
source: "."
target: "src/RobotFW-frontend"
rm: true
- name: Call remote deploy script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
port: ${{ secrets.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_KEY }}
script: "./gha_deploy.sh robotfw_frontend"