-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (34 loc) · 1.28 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
name: Deploy to https://rich.blog
on:
# Triggers the workflow only for the main branch
push:
branches: [main]
paths-ignore:
- '.github/**'
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- '.editorconfig'
- 'package.json'
- 'README.md'
- 'LICENSE'
- '.wp-env.js'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Sync files
uses: SamKirkland/[email protected]
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
REMOTE_DIR: ${{ secrets.FTP_REMOTE_DIR }}
METHOD: sftp
PORT: 22
ARGS: --exclude=README.md --exclude-glob=.git*/** --exclude-glob=.git** --exclude-glob=node_modules/** --exclude=package.json --exclude=composer.json --exclude=package-lock.json --exclude=.wp-env.json --exclude=.wp-env-generator.json