-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.12 KB
/
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
46
47
name: Build and Deploy
on:
push:
branches:
- main
paths:
- '**/*.php'
- '**/*.js'
- '**/*.scss'
- '**/*.css'
- theme.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Node Setup
uses: actions/[email protected]
with:
cache: 'npm'
- name: Upload Artifact
uses: actions/[email protected]
with:
name: theme-build
path: './'
retention-days: 1
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/[email protected]
- name: Deploy
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
port: ${{ secrets.FTP_PORT }}
password: ${{ secrets.FTP_PASS }}
server-dir: './wp-content/themes/it-residence/'