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_use_feat | FTP - FEAT: Determining what extended features the FTP server supports. | No | true | N/A |
52
+
| ftp_nop_interval | FTP - Delay in seconds between NOOP commands when downloading tail of a file. | No | 2 | N/A |
53
+
| net_max_retries | NET - Maximum number of operation without success.<br> 0 unlimited.<br> 1 no retries. | No | 1 | N/A |
54
+
| net_persist_retries | NET - Ignore hard errors.<br> When reply 5xx errors or there is too many users. | No | 5 | N/A |
55
+
| net_timeout | NET - Sets the network protocol timeout. | No | 15s | N/A |
56
+
| dns_max_retries | DNS - 0 no limit trying to lookup an address otherwise try only this number of times. | No | 8 | N/A |
57
+
| dns_fatal_timeout | DNS - Time for DNS queries.<br> Set to "never" to disable. | No | 10s | N/A |
58
+
| lftp_settings | Any other settings that you find in the MAN pages for the LFTP package. | No | "" | "set cache:cache-empty-listings true; set cmd:status-interval 1s; set http:user-agent 'firefox';" |
59
+
60
+
More information on the official site for [lftp - Manual pages][2].
62
61
63
62
Example with NO DEFAULT settings:
64
63
65
64
```yaml
66
65
name: CI -> Deploy to My website
67
66
on:
68
67
push:
69
-
branches: [ master, Development ]
68
+
branches: [ main, development ]
70
69
jobs:
71
70
build:
72
71
runs-on: ubuntu-latest
73
72
steps:
74
-
- uses: actions/checkout@v2
73
+
- uses: actions/checkout@v4
75
74
# Here is the deployment action
76
75
- name: Upload from public_html via FTP
77
76
uses: airvzxf/ftp-deployment-action@latest
@@ -92,19 +91,23 @@ jobs:
92
91
net_timeout: "13s"
93
92
dns_max_retries: "17"
94
93
dns_fatal_timeout: "never"
94
+
lftp_settings: "set cache:cache-empty-listings true; set cmd:status-interval 1s; set http:user-agent 'firefox';"
95
95
```
96
96
97
97
## NOTES
98
98
99
99
Main features:
100
-
- Copy all the files inside of the specific folder from your Github repository to the specific folder in your server.
100
+
101
+
- Copy all the files inside the specific folder from your GitHub repository to the specific folder in your server.
101
102
- Option to delete all the files in the specific remote folder before the upload.
102
-
- Use Alpine container means small size and faster creation of the container.
103
+
- Using Alpine container means small size and faster creation of the container.
103
104
- Show messages in the console logs for every executed command.
104
105
105
106
TODOs:
107
+
106
108
- Add options for exclude delete files.
107
-
- Take all the logs from the Linux container then attach all into the Workflow Artifacts, to review unknown errors.
109
+
- Take all the logs from the Linux container then attach all into the Workflow Artifacts, to review unknown errors.
0 commit comments