Skip to content

Commit 4cd0cd0

Browse files
committed
add readme
1 parent 83bf24a commit 4cd0cd0

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
# ftp-action
1+
# ftp-action
2+
3+
Automate copying your files via FTP using this GitHub action.
4+
5+
## Example usage
6+
7+
```
8+
name: Upload via FTP
9+
on: push
10+
jobs:
11+
FTP-Action:
12+
name: FTP-Action
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Deploy FTP
17+
uses: sebastianpopp/ftp-action@master
18+
with:
19+
host: "ftp.example.com"
20+
user: ${{ secrets.FTP_USERNAME }}
21+
password: ${{ secrets.FTP_PASSWORD }}
22+
localDir: "dist"
23+
remoteDir: "www"
24+
```
25+
26+
## Input parameters
27+
28+
Input parameter | Description | Required | Default
29+
--- | --- | --- | ---
30+
host | FTP server name | Yes | N/A
31+
user | FTP username | Yes | N/A
32+
password | FTP password | Yes | N/A
33+
localDir | The local directory to copy | No | .
34+
remoteDir | The remote directory to copy to | No | .

0 commit comments

Comments
 (0)