mirror of
https://github.com/GenieTim/ftp-action.git
synced 2024-12-04 23:12:26 +08:00
add new releases/v1 branch to readme
This commit is contained in:
parent
73cab2a2cd
commit
60e94deadd
@ -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"]
|
||||
|
12
README.md
12
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 }}
|
||||
|
10
action.yml
10
action.yml
@ -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'
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user