-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.14 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
on:
push
name: 🚀 Deploy site
jobs:
web-deploy-test:
if: startsWith(github.ref, 'refs/heads/') && github.ref != 'refs/heads/master'
name: 🎉 Deploy TEST
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🔄️ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
dry-run: true
log-level: standard
exclude: |
**/.git*
**/.git*/**
web-deploy-prod:
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
name: 🎉 Deploy PROD
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🔄️ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
dry-run: false
log-level: verbose
exclude: |
**/.git*
**/.git*/**