add new releases/v1 branch to readme

This commit is contained in:
Sebastian Popp 2019-11-16 18:45:24 +01:00
parent 73cab2a2cd
commit 60e94deadd
4 changed files with 14 additions and 18 deletions

View File

@ -1,11 +1,9 @@
FROM alpine:3.10
LABEL version="1.0.0"
LABEL repository="https://github.com/sebastianpopp/ftp-action"
LABEL homepage="https://github.com/sebastianpopp/ftp-action"
LABEL maintainer="Sebastian Popp <ftp-action@sebastianpopp.com>"
COPY LICENSE README.md /
RUN apk --no-cache add lftp
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -1,20 +1,20 @@
# ftp-action
Automate copying your files via FTP using this GitHub action.
Automate copying your files via ftp using this GitHub action.
## Example usage
```
name: Upload via FTP
name: Deploy via ftp
on: push
jobs:
FTP-Action:
name: FTP-Action
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Deploy FTP
uses: sebastianpopp/ftp-action@master
- name: Upload ftp
uses: sebastianpopp/ftp-action@releases/v1
with:
host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}

View File

@ -1,6 +1,6 @@
name: 'FTP Action'
description: 'Mirrors a directory with a FTP server.'
name: 'ftp-action'
author: 'Sebastian Popp <ftp-action@sebastianpopp.com>'
description: 'Automate copying your files via FTP using this GitHub action.'
inputs:
host:
description: 'FTP host'
@ -19,9 +19,9 @@ inputs:
description: 'Remote directory'
required: false
default: '.'
branding:
color: 'blue'
icon: 'upload'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
color: 'blue'
icon: 'upload-cloud'

View File

@ -1,5 +1,3 @@
#!/bin/sh
set -e
#!/bin/sh -l
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"