-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.09 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
name: CI/CD Development
on :
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
web-deploy:
name: auto deploy
runs-on: ubuntu-latest
steps:
- name: get latest code
uses: actions/checkout@v3
- name: FTP Deploy
# You may pin to the exact commit or the version.
# uses: SamKirkland/FTP-Deploy-Action@8a24039354ee91000cb948cb4a1dbdf1a1b94a3c
uses: SamKirkland/[email protected]
with:
# ftp server
server: ${{ secrets.FTP_SERVER }}
# ftp username
username: ${{ secrets.FTP_USERNAME }}
# ftp password
password: ${{ secrets.FTP_PASSWORD }}
# Server port to connect to (read your web hosts docs)
port: ${{ secrets.FTP_PORT }}
# protocol to deploy with - ftp, ftps, or ftps-legacy
protocol: ftp
# An array of glob patterns, these files will not be included in the publish/delete process
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/vendor/**
**/storage/**