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
Copy file name to clipboardExpand all lines: README.md
+50-26Lines changed: 50 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,10 @@ jobs:
15
15
steps:
16
16
- uses: actions/checkout@master
17
17
- name: FTP-Deploy-Action
18
-
uses: SamKirkland/FTP-Deploy-Action@master
18
+
uses: SamKirkland/FTP-Deploy-Action@2.0.0
19
19
env:
20
20
FTP_SERVER: ftp.samkirkland.com
21
-
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
21
+
FTP_USERNAME: myFtpUserName
22
22
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
23
23
ARGS: --delete
24
24
# --delete arg will delete files on the server if you've deleted them in git
@@ -28,29 +28,31 @@ jobs:
28
28
2. Select the actions tab `(currently only for beta testers)`
29
29
3. Select `Blank workflow file` or `Set up a workflow yourself`, if you don't see these options manually create a yaml file `Your_Project/.github/workflows/main.yml`
30
30
4. Paste the above code into your file and save
31
-
7. Now you need to add a few keys to the `secrets` section in your project, the following are required at a minimum. To add a `secret` go to the `Settings` tab in your project then select `Secrets`. Add a new `Secret` for each of the following
32
-
* FTP_SERVER
33
-
* FTP_USERNAME
34
-
* FTP_PASSWORD
35
-
* (see optional settings below)
31
+
7. Now you need to add a key to the `secrets` section in your project. To add a `secret` go to the `Settings` tab in your project then select `Secrets`. Add a new `Secret` for `FTP_PASSWORD`
36
32
37
33
### Settings
38
-
To add a `secret` go to the `Settings` tab in your project then select `Secrets`. Add a new `Secret` for each of the following.
39
-
I recommend you use a secrets to store your FTP_USERNAME and FTP_PASSWORD.
40
-
41
-
| Key Name | Required? | Example | Default | Description |
|`LOCAL_DIR`| No | build | . (root project folder) | The local folder to copy, defaults to root project folder. Do NOT include slashes for folders. |
47
-
|`REMOTE_DIR`| No | serverFolder | . (root FTP folder) | The remote folder to copy to, deafults to root FTP folder (I recommend you configure this on your server side instead of here). Do NOT include slashes for folders. |
48
-
|`ARGS`| No | See `Commonly used ARGS` section below | N/A | Custom lftp arguments, this field is passed through directly into the lftp script. |
49
-
50
-
#### Commonly used ARGS
34
+
Keys can be added directly to your .yml config file or referenced from your project `Secrets` storage.
35
+
36
+
To add a `secret` go to the `Settings` tab in your project then select `Secrets`.
37
+
I recommend you store your FTP_PASSWORD as a secret.
38
+
39
+
| Key Name | Required? | Example | Default | Description |
|`METHOD`| No | ftp | ftp | Protocol used to deploy (ftp or sftp) |
45
+
|`PORT`| No | 21 | ftp=21, sftp=22 | The port used to connect to server |
46
+
|`LOCAL_DIR`| No | build | . (root project folder) | The local folder to copy, defaults to root project folder. Do NOT include slashes for folders. |
47
+
|`REMOTE_DIR`| No | serverFolder | . (root FTP folder) | The remote folder to copy to, deafults to root FTP folder (I recommend you configure this on your server side instead of here). Do NOT include slashes for folders. |
48
+
|`ARGS`| No | See `ARGS` section below | N/A | Custom lftp arguments, this field is passed through directly into the lftp script. |
49
+
50
+
#### ARGS
51
51
Custom lftp arguments, this field is passed through directly into the lftp script. See [lftp's website](https://lftp.yar.ru/lftp-man.html) for all options.
52
52
You can use as many arguments as you want, seperate them with a space
53
53
54
+
Below is an incomplete list of commonly used ARGS:
0 commit comments