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
| `ftp-server` | Yes | ftp://ftp.samkirkland.com/destinationPath/ | | Deployment destination server & path. Formatted as `protocol://domain.com:port/destinationPath/` protocol can be `ftp`, `ftps`, or `sftp`. Port is optional, when not specified it will default to 21 when using ftp, 22 when using sftp, and 990 when using ftps |
| `local-dir` | No | deploy/ | ./ | Which local folder to deploy, path should be relative to the root and should include trailing slash. `./` is the root of the project |
64
-
| `git-ftp-args` | No | See `git-ftp-args` section below | | Custom git-ftp arguments, this field is passed through directly into the git-ftp script |
65
-
| `known-hosts` | No | hostname ssh-rsa AAAAB3NzaC1y ... | | The desired contents of your .ssh/known_hosts file. See [known hosts setup](#known-hosts-setup) |
58
+
| Key Name | Required? | Example | Default | Description |
| `ftp-server` | Yes | ftp://ftp.samkirkland.com/destinationPath/ | | Deployment destination server & path. Formatted as `protocol://domain.com:port/destinationPath/` protocol can be `ftp`, `ftps`, or `sftp`. Port is optional, when not specified it will default to 21 when using ftp, 22 when using sftp, and 990 when using ftps |
| `local-dir` | No | deploy/ | ./ | Which local folder to deploy, path should be relative to the root and should include trailing slash. `./` is the root of the project |
64
+
| `git-ftp-args` | No | See `git-ftp-args` section below | | Custom git-ftp arguments, this field is passed through directly into the git-ftp script |
65
+
| `known-hosts` | No | hostname ssh-rsa AAAAB3NzaC1y ... | | The desired contents of your .ssh/known_hosts file. See [known hosts setup](#known-hosts-setup) |
66
66
67
67
#### Advanced options using `git-ftp-args`
68
68
Custom arguments, this field is passed through directly into the git-ftp script. See [git-ftp's manual](https://github.com/git-ftp/git-ftp/blob/master/man/git-ftp.1.md) for all options.
69
69
You can use as many arguments as you want, seperate them with a space
70
70
71
71
Below is an incomplete list of commonly used args:
| `--dry-run` | Does not upload or delete anything, but tries to get the .git-ftp.log file from remote host |
76
-
| `--silent` | Be silent |
77
-
| `--all` | Transfer all files, even seemingly the same as the target site (default is differences only). Note: Only files committed to github are uploaded, if you'd like to upload files generated during the action run see `.git-ftp-include` |
78
-
| `--lock` | Locks remote files from being modified while a deployment is running |
79
-
| `--remote-root` | Specifies the remote root directory to deploy to. The remote path in the URL is ignored |
80
-
| `--key` | SSH private key file name for SFTP |
81
-
| `--branch` | Push a specific branch. I recommend [creating a yaml action for each branch instead](https://github.com/SamKirkland/FTP-Deploy-Action/issues/37#issuecomment-579819486) |
82
-
| `--pubkey` | SSH public key file name. Used with `--key` option |
| `--dry-run` | Does not upload or delete anything, but tries to get the .git-ftp.log file from remote host |
76
+
| `--silent` | Be silent |
77
+
| `--all` | Transfer all files, even seemingly the same as the target site (default is differences only). Note: Only files committed to github are uploaded, if you'd like to upload files generated during the action run see `.git-ftp-include` |
78
+
| `--lock` | Locks remote files from being modified while a deployment is running |
79
+
| `--remote-root` | Specifies the remote root directory to deploy to. The remote path in the URL is ignored |
80
+
| `--key` | SSH private key file name for SFTP |
81
+
| `--branch` | Push a specific branch. I recommend [creating a yaml action for each branch instead](https://github.com/SamKirkland/FTP-Deploy-Action/issues/37#issuecomment-579819486) |
82
+
| `--pubkey` | SSH public key file name. Used with `--key` option |
0 commit comments