-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.06 KB
/
deploy_main_to_prod.yaml
File metadata and controls
37 lines (34 loc) · 1.06 KB
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
on:
push:
branches:
- main
workflow_dispatch:
name: Deploy website on main push
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v3
- name: Build backoffice
run: npm ci && npm run build
- name: Deploy files
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
server: ${{ secrets.FTP }}
port: ${{ secrets.FTP_PORT }}
local_path: './*'
remote_path: '/www/backend'
sftp_only: true
# - name: Sync files
# uses: wangyucode/sftp-upload-action@v2.0.2
# with:
# host: ${{ secrets.FTP }}
# username: ${{ secrets.FTP_USERNAME }}
# password: ${{ secrets.FTP_PASSWORD }}
# localDir: '.'
# remoteDir: './www/backend/'
# exclude: '.git*,**/.git*,**/.git*/**,**/.idea*,**/.idea*/**.DS_Store,.env,.env.example,.htaccess, **/public/images*'