-
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1020 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
41
42
43
44
45
on:
push:
branches:
- main
name: 🚀 Deploy website on Push
jobs:
web-deploy:
name: 🎉 Deploy on The server
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Install PHP and Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: 'composer'
- name: Composer install
run: composer install
- name: 📦 Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: NPM install
run: npm install && npm run build
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.SERVER }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
protocol: ftp
port: 21,
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/vendor/**