-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1013 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
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy ${{ github.event.ref }}
steps:
- name: 🚚 Get latest code
uses: actions/checkout@master
- name: 📂 Sync files (Production)
uses: SamKirkland/FTP-Deploy-Action@master
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: "sistemas/sorteio/app/"
ssh-action:
needs: deploy
name: SSH Action on Sorteio
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd sistemas/sorteio/app/
composer install
composer update