You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `password` | Yes | `CrazyUniquePassword&%123` | | FTP password, be sure to escape quotes and spaces |
63
-
| `port` | No | `990` | `21` | Server port to connect to (read your web hosts docs) |
64
-
| `protocol` | No | `ftps` | `ftp` | `ftp`: provides no encryption, `ftps`: full encryption newest standard (aka "explicit" ftps), `ftps-legacy`: full encryption legacy standard (aka "implicit" ftps) |
65
-
| `local-dir` | No | `./myFolderToPublish/` | `./` | Folder to upload from, must end with trailing slash `/` |
66
-
| `server-dir` | No | `public_html/www/` | `./` | Folder to upload to (on the server), must end with trailing slash `/` |
67
-
| `state-name` | No | `folder/.sync-state.json` | `.ftp-deploy-sync-state.json` | Path and name of the state file - this file is used to track which files have been deployed |
68
-
| `dry-run` | No | `true` | `false` | Prints which modifications will be made with current config options, but doesn't actually make any changes |
69
-
| `dangerous-clean-slate` | No | `true` | `false` | Deletes ALL contents of server-dir, even items in excluded with 'exclude' argument |
70
-
| `exclude` | No | | `.git*` `**.git*` `.git*/**` `**/.git*/**` `node_modules/**` `node_modules/**/*` | An array of glob patterns, these files will not be included in the publish/delete process. [List must be in yaml array format](#exclude-files) |
71
-
| `log-level` | No | `minimal` | `standard` | `minimal`: only important info, `standard`: important info and basic file changes, `verbose`: print everything the script is doing |
72
-
| `security` | No | `strict` | `loose` | `strict`: Reject any connection which is not authorized with the list of supplied CAs. `loose`: Allow connection even when the domain is not certificate |
58
+
| Key Name | Required | Example | Default Value | Description |
| `password` | Yes | `CrazyUniquePassword&%123` | | FTP password, be sure to escape quotes and spaces |
63
+
| `port` | No | `990` | `21` | Server port to connect to (read your web hosts docs) |
64
+
| `protocol` | No | `ftps` | `ftp` | `ftp`: provides no encryption, `ftps`: full encryption newest standard (aka "explicit" ftps), `ftps-legacy`: full encryption legacy standard (aka "implicit" ftps) |
65
+
| `local-dir` | No | `./myFolderToPublish/` | `./` | Folder to upload from, must end with trailing slash `/` |
66
+
| `server-dir` | No | `public_html/www/` | `./` | Folder to upload to (on the server), must end with trailing slash `/` |
67
+
| `state-name` | No | `folder/.sync-state.json` | `.ftp-deploy-sync-state.json` | Path and name of the state file - this file is used to track which files have been deployed |
68
+
| `dry-run` | No | `true` | `false` | Prints which modifications will be made with current config options, but doesn't actually make any changes |
69
+
| `dangerous-clean-slate` | No | `true` | `false` | Deletes ALL contents of server-dir, even items in excluded with 'exclude' argument |
70
+
| `exclude` | No | | `**/.git*` `**/.git*/**` `**/node_modules/**` | An array of glob patterns, these files will not be included in the publish/delete process. [List must be in yaml array format](#exclude-files) |
71
+
| `log-level` | No | `minimal` | `standard` | `minimal`: only important info, `standard`: important info and basic file changes, `verbose`: print everything the script is doing |
72
+
| `security` | No | `strict` | `loose` | `strict`: Reject any connection which is not authorized with the list of supplied CAs. `loose`: Allow connection even when the domain is not certificate |
73
73
74
74
75
75
# Common Examples
@@ -98,7 +98,7 @@ jobs:
98
98
npm run build
99
99
100
100
- name: 📂 Sync files
101
-
uses: SamKirkland/FTP-Deploy-Action@4.0.0
101
+
uses: SamKirkland/FTP-Deploy-Action@4.1.0
102
102
with:
103
103
server: ftp.samkirkland.com
104
104
username: myFtpUserName
@@ -118,7 +118,7 @@ jobs:
118
118
uses: actions/checkout@v2
119
119
120
120
- name: 📂 Sync files
121
-
uses: SamKirkland/FTP-Deploy-Action@4.0.0
121
+
uses: SamKirkland/FTP-Deploy-Action@4.1.0
122
122
with:
123
123
server: ftp.samkirkland.com
124
124
username: myFtpUserName
@@ -141,7 +141,7 @@ jobs:
141
141
uses: actions/checkout@v2
142
142
143
143
- name: 📂 Sync files
144
-
uses: SamKirkland/FTP-Deploy-Action@4.0.0
144
+
uses: SamKirkland/FTP-Deploy-Action@4.1.0
145
145
with:
146
146
server: ftp.samkirkland.com
147
147
username: myFtpUserName
@@ -163,17 +163,16 @@ jobs:
163
163
uses: actions/checkout@v2
164
164
165
165
- name: 📂 Sync files
166
-
uses: SamKirkland/FTP-Deploy-Action@4.0.0
166
+
uses: SamKirkland/FTP-Deploy-Action@4.1.0
167
167
with:
168
168
server: ftp.samkirkland.com
169
169
username: myFtpUserName
170
170
password: ${{ secrets.password }}
171
-
exclude: .git*
172
-
- **.git*
173
-
- .git*/**
174
-
- **/.git*/**
175
-
- node_modules/**
176
-
- node_modules/**/*
171
+
exclude:
172
+
- **/.git*
173
+
- **/.git*/**
174
+
- **/node_modules/**
175
+
- fileToExclude.txt
177
176
```
178
177
179
178
_Want another example? Let me know by creating a [github issue](https://github.com/SamKirkland/FTP-Deploy-Action/issues/new)_
@@ -237,7 +236,8 @@ Git files are excluded by default! If you customize the `exclude` option make su
237
236
You can use the `exclude` option to ignore specific files/folders from the publish. Keep in mind you will need to re-add the default exclude options if you want to keep them. For example the below option excludes all `.txt` files.
0 commit comments