Skip to content

Commit 60e94de

Browse files
committed
add new releases/v1 branch to readme
1 parent 73cab2a commit 60e94de

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
FROM alpine:3.10
22

3-
LABEL version="1.0.0"
4-
LABEL repository="https://github.com/sebastianpopp/ftp-action"
5-
LABEL homepage="https://github.com/sebastianpopp/ftp-action"
6-
LABEL maintainer="Sebastian Popp <[email protected]>"
3+
COPY LICENSE README.md /
74

85
RUN apk --no-cache add lftp
96

107
COPY entrypoint.sh /entrypoint.sh
8+
119
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# ftp-action
22

3-
Automate copying your files via FTP using this GitHub action.
3+
Automate copying your files via ftp using this GitHub action.
44

55
## Example usage
66

77
```
8-
name: Upload via FTP
8+
name: Deploy via ftp
99
on: push
1010
jobs:
11-
FTP-Action:
12-
name: FTP-Action
11+
deploy:
12+
name: Deploy
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@master
16-
- name: Deploy FTP
17-
uses: sebastianpopp/ftp-action@master
16+
- name: Upload ftp
17+
uses: sebastianpopp/ftp-action@releases/v1
1818
with:
1919
host: ${{ secrets.FTP_SERVER }}
2020
user: ${{ secrets.FTP_USERNAME }}

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: 'FTP Action'
2-
description: 'Mirrors a directory with a FTP server.'
1+
name: 'ftp-action'
32
author: 'Sebastian Popp <[email protected]>'
3+
description: 'Automate copying your files via FTP using this GitHub action.'
44
inputs:
55
host:
66
description: 'FTP host'
@@ -19,9 +19,9 @@ inputs:
1919
description: 'Remote directory'
2020
required: false
2121
default: '.'
22-
branding:
23-
color: 'blue'
24-
icon: 'upload'
2522
runs:
2623
using: 'docker'
2724
image: 'Dockerfile'
25+
branding:
26+
color: 'blue'
27+
icon: 'upload-cloud'

entrypoint.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/bin/sh
2-
3-
set -e
1+
#!/bin/sh -l
42

53
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"

0 commit comments

Comments
 (0)