From 60e94deadd99df7b2cabda98b190e03639e0aa99 Mon Sep 17 00:00:00 2001 From: Sebastian Popp Date: Sat, 16 Nov 2019 18:45:24 +0100 Subject: [PATCH] add new releases/v1 branch to readme --- Dockerfile | 6 ++---- README.md | 12 ++++++------ action.yml | 10 +++++----- entrypoint.sh | 4 +--- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 294f86c..83666f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 " +COPY LICENSE README.md / RUN apk --no-cache add lftp COPY entrypoint.sh /entrypoint.sh + ENTRYPOINT ["/entrypoint.sh"] diff --git a/README.md b/README.md index 8c9893f..2ac3687 100644 --- a/README.md +++ b/README.md @@ -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 }} diff --git a/action.yml b/action.yml index 23b31df..903df30 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,6 @@ -name: 'FTP Action' -description: 'Mirrors a directory with a FTP server.' +name: 'ftp-action' author: 'Sebastian Popp ' +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' diff --git a/entrypoint.sh b/entrypoint.sh index 7c1b429..d134a62 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"